summaryrefslogtreecommitdiffstats
path: root/recipes-security/samhain/files/samhain-server.init
diff options
context:
space:
mode:
authorMingli Yu <Mingli.Yu@windriver.com>2017-12-06 15:07:08 +0800
committerArmin Kuster <akuster808@gmail.com>2017-12-10 15:03:55 -0800
commitd95d99386c211e86ec3aa67cec98f86d5b45091c (patch)
tree80fe4706eba8ea459f4a1459b8b7bf37dea15a43 /recipes-security/samhain/files/samhain-server.init
parent694ab819bc573c68d376fc9a7d99ec3b5628837d (diff)
downloadmeta-security-d95d99386c211e86ec3aa67cec98f86d5b45091c.tar.gz
samhain: remove the path for start-stop-daemon
Remove the absolute path for start-stop-daemon to fix samhain start-up as start-stop-daemon sometimes located in /usr/sbin, not the expected /sbin. Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-security/samhain/files/samhain-server.init')
-rw-r--r--recipes-security/samhain/files/samhain-server.init10
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes-security/samhain/files/samhain-server.init b/recipes-security/samhain/files/samhain-server.init
index 89bd0aa..c456e51 100644
--- a/recipes-security/samhain/files/samhain-server.init
+++ b/recipes-security/samhain/files/samhain-server.init
@@ -65,14 +65,14 @@ case "$1" in
65 fi 65 fi
66 # 66 #
67 echo -n "Starting ${NAME}" 67 echo -n "Starting ${NAME}"
68 /sbin/start-stop-daemon --start --quiet --exec $DAEMON 68 start-stop-daemon --start --quiet --exec $DAEMON
69 RETVAL=$? 69 RETVAL=$?
70 samhain_done 70 samhain_done
71 ;; 71 ;;
72 72
73 stop) 73 stop)
74 echo -n "Stopping $NAME" 74 echo -n "Stopping $NAME"
75 ( /sbin/start-stop-daemon --stop --quiet --exec $DAEMON ) 75 start-stop-daemon --stop --quiet --exec $DAEMON
76 RETVAL=$? 76 RETVAL=$?
77 77
78 # 78 #
@@ -95,8 +95,8 @@ case "$1" in
95 ;; 95 ;;
96 96
97 reload|force-reload) 97 reload|force-reload)
98 echo -n "Reloading $NAME configuration files" 98 echo -n "Reloading $NAME configuration files"
99 /sbin/start-stop-daemon --stop --signal 1 --quiet --exec $DAEMON 99 start-stop-daemon --stop --signal 1 --quiet --exec $DAEMON
100 RETVAL=$? 100 RETVAL=$?
101 samhain_done 101 samhain_done
102 ;; 102 ;;