summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/watchdog/watchdog/watchdog-init.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/watchdog/watchdog/watchdog-init.patch')
-rw-r--r--meta/recipes-extended/watchdog/watchdog/watchdog-init.patch56
1 files changed, 0 insertions, 56 deletions
diff --git a/meta/recipes-extended/watchdog/watchdog/watchdog-init.patch b/meta/recipes-extended/watchdog/watchdog/watchdog-init.patch
deleted file mode 100644
index b2765f1908..0000000000
--- a/meta/recipes-extended/watchdog/watchdog/watchdog-init.patch
+++ /dev/null
@@ -1,56 +0,0 @@
1Signed-off-by: Diego Rondini <diego.ml@zoho.com>
2Upstream-Status: Inappropriate
3
4--- watchdog-5.13.orig/redhat/watchdog.init 2014-11-12 17:18:39.125943000 +0100
5+++ watchdog-5.13/redhat/watchdog.init 2014-11-12 18:27:36.189943000 +0100
6@@ -7,7 +7,7 @@
7 # Henning P. Schmiedehausen <hps@tanstaafl.de>
8
9 # Source function library.
10-. /etc/rc.d/init.d/functions
11+. /etc/init.d/functions
12
13 [ -x /usr/sbin/watchdog -a -e /etc/watchdog.conf ] || exit 0
14
15@@ -23,22 +23,22 @@
16
17 start() {
18
19- echo -n $"Starting $prog: "
20+ echo -n "Starting $prog: "
21 if [ -n "$(pidofproc $prog)" ]; then
22- echo -n $"$prog: already running"
23- echo_failure
24+ echo -n "$prog: already running "
25+ failure
26 echo
27 return 1
28 fi
29 if [ "$VERBOSE" = "yes" ]; then
30- daemon /usr/sbin/${prog} -v
31+ /usr/sbin/${prog} -v
32 else
33- daemon /usr/sbin/${prog}
34+ /usr/sbin/${prog}
35 fi
36 RETVAL=$?
37 [ $RETVAL -eq 0 ] && touch $lockfile
38- [ $RETVAL -eq 0 ] && echo_success
39- [ $RETVAL -ne 0 ] && echo_failure
40+ [ $RETVAL -eq 0 ] && success
41+ [ $RETVAL -ne 0 ] && failure
42 echo
43 return $RETVAL
44 }
45@@ -50,8 +50,10 @@
46 # and reboot the box.
47 killproc $prog -TERM
48 RETVAL=$?
49- echo
50 [ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
51+ [ $RETVAL -eq 0 ] && success
52+ [ $RETVAL -ne 0 ] && failure
53+ echo
54 return $RETVAL
55 }
56