From 96c91eb8d684e9a6aa42ceb0a1532a1d70f0c75b Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 16 Sep 2012 18:17:17 +0800 Subject: [PATCH] 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. --- recipes-bsp/watchdog/watchdog/init | 8 ++++---- recipes-bsp/watchdog/watchdog_sysmocom.inc | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/recipes-bsp/watchdog/watchdog/init b/recipes-bsp/watchdog/watchdog/init index cdc960a..4d75dfe 100644 --- a/recipes-bsp/watchdog/watchdog/init +++ b/recipes-bsp/watchdog/watchdog/init @@ -5,8 +5,8 @@ ### BEGIN INIT INFO # Provides: watchdog # Short-Description: Start software watchdog daemon -# Required-Start: $all -# Required-Stop: $all +# Required-Start: $local_fs +# Required-Stop: # Should-Start: # Should-Stop: # Default-Start: S @@ -67,8 +67,8 @@ case "$1" in force-reload) if [ $run_watchdog = 0 ]; then exit 0; fi echo "Restarting ${NAME}" - stop - start + $0 stop + $0 start ;; *) diff --git a/recipes-bsp/watchdog/watchdog_sysmocom.inc b/recipes-bsp/watchdog/watchdog_sysmocom.inc index 1362ddd..7d09be3 100644 --- a/recipes-bsp/watchdog/watchdog_sysmocom.inc +++ b/recipes-bsp/watchdog/watchdog_sysmocom.inc @@ -1,6 +1,6 @@ SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" FILESEXTRAPATHS_prepend := "${SYSMOCOM}/${PN}-${PV}:${SYSMOCOM}/${PN}" -PRINC = "7" +PRINC = "8" inherit update-rc.d