mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-16 22:45:05 +00:00
nginx: fix kill path in nginx systemd unit file
the kill utility is located in /bin/kill -> use base_bindir instead of bindir Signed-off-by: Nicola Lunghi <nick83ola@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
acb604775e
commit
dd5622ef2b
@ -8,7 +8,7 @@ PIDFile=/run/nginx/nginx.pid
|
|||||||
ExecStartPre=@SBINDIR@/nginx -t
|
ExecStartPre=@SBINDIR@/nginx -t
|
||||||
ExecStart=@SBINDIR@/nginx
|
ExecStart=@SBINDIR@/nginx
|
||||||
ExecReload=@SBINDIR@/nginx -s reload
|
ExecReload=@SBINDIR@/nginx -s reload
|
||||||
ExecStop=@BINDIR@/kill -s QUIT $MAINPID
|
ExecStop=@BASE_BINDIR@/kill -s QUIT $MAINPID
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|||||||
@ -135,7 +135,7 @@ do_install () {
|
|||||||
sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' \
|
sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' \
|
||||||
-e 's,@LOCALSTATEDIR@,${localstatedir},g' \
|
-e 's,@LOCALSTATEDIR@,${localstatedir},g' \
|
||||||
-e 's,@SBINDIR@,${sbindir},g' \
|
-e 's,@SBINDIR@,${sbindir},g' \
|
||||||
-e 's,@BINDIR@,${bindir},g' \
|
-e 's,@BASE_BINDIR@,${base_bindir},g' \
|
||||||
${D}${systemd_unitdir}/system/nginx.service
|
${D}${systemd_unitdir}/system/nginx.service
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user