mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
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:
committed by
Martin Jansa
parent
9f3a2e92d3
commit
fc5b483f76
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user