Files
Amarnath Valluri fc5b483f76 nginx: Fix systemd service file
systemd service file expects full path of the executatbles.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-11-11 10:46:54 +01:00

13 lines
298 B
Desktop File

[Unit]
Description=Nginx Server
After=network.target
[Service]
Type=forking
PIDFile=@SYSCONFDIR@/nginx/run/nginx.pid
ExecStartPre=@BASEBINDIR@/mkdir -p @LOCALSTATEDIR@/log/nginx
ExecStart=@SYSCONFDIR@/init.d/nginx start
ExecStop=@SYSCONFDIR@/init.d/nginx stop
[Install]
WantedBy=multi-user.target