mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-10-02 16:46:26 +00:00
Adds support for systemd, creates a service for nginx and installs it if required Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
13 lines
285 B
Desktop File
13 lines
285 B
Desktop File
[Unit]
|
|
Description=Nginx Server
|
|
After=network.target
|
|
[Service]
|
|
Type=forking
|
|
PIDFile=@SYSCONFDIR@/nginx/run/nginx.pid
|
|
ExecStartPre=mkdir -p @LOCALSTATEDIR@/log/nginx
|
|
ExecStart=@SYSCONFDIR@/init.d/nginx start
|
|
ExecStop=@SYSCONFDIR@/init.d/nginx stop
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|