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>
This commit is contained in:
Amarnath Valluri authored and Martin Jansa committed 2015-11-11 10:46:54 +01:00
1 parent 9f3a2e92d3
commit fc5b483f76
2 files changed
+2 -1

No files matched your search

@@ -4,7 +4,7 @@ After=network.target
[Service]
Type=forking
PIDFile=@SYSCONFDIR@/nginx/run/nginx.pid
ExecStartPre=mkdir -p @LOCALSTATEDIR@/log/nginx
ExecStartPre=@BASEBINDIR@/mkdir -p @LOCALSTATEDIR@/log/nginx
ExecStart=@SYSCONFDIR@/init.d/nginx start
ExecStop=@SYSCONFDIR@/init.d/nginx stop
[Install]
@@ -94,6 +94,7 @@ do_install () {
install -m 0644 ${WORKDIR}/nginx.service ${D}${systemd_unitdir}/system/
sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' \
-e 's,@LOCALSTATEDIR@,${localstatedir},g' \
-e 's,@BASEBINDIR@,${base_bindir},g' \
${D}${systemd_unitdir}/system/nginx.service
fi
}