watchdog: Bump the pr, depend on the $localfs to fix the systemd init
systemd is using the depedencies of the LSB section and according to the debian documentation all applications accessing /var should depend on the localfs. This makes the watchdog start properly on systemd systems.
This commit is contained in:
parent
9c3b75040a
commit
96c91eb8d6
|
@ -5,8 +5,8 @@
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: watchdog
|
# Provides: watchdog
|
||||||
# Short-Description: Start software watchdog daemon
|
# Short-Description: Start software watchdog daemon
|
||||||
# Required-Start: $all
|
# Required-Start: $local_fs
|
||||||
# Required-Stop: $all
|
# Required-Stop:
|
||||||
# Should-Start:
|
# Should-Start:
|
||||||
# Should-Stop:
|
# Should-Stop:
|
||||||
# Default-Start: S
|
# Default-Start: S
|
||||||
|
@ -67,8 +67,8 @@ case "$1" in
|
||||||
force-reload)
|
force-reload)
|
||||||
if [ $run_watchdog = 0 ]; then exit 0; fi
|
if [ $run_watchdog = 0 ]; then exit 0; fi
|
||||||
echo "Restarting ${NAME}"
|
echo "Restarting ${NAME}"
|
||||||
stop
|
$0 stop
|
||||||
start
|
$0 start
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
||||||
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/${PN}-${PV}:${SYSMOCOM}/${PN}"
|
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/${PN}-${PV}:${SYSMOCOM}/${PN}"
|
||||||
PRINC = "7"
|
PRINC = "8"
|
||||||
|
|
||||||
inherit update-rc.d
|
inherit update-rc.d
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue