1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
Description: Adjust init.d and service file to point to /usr/sbin/debomatic
Author: Luca Falavigna <dktrkranz@debian.org
Forwarded: not-needed
Index: debomatic-0.13~git20140911/etc/init.d/debomatic
===================================================================
--- debomatic-0.13~git20140911.orig/etc/init.d/debomatic
+++ debomatic-0.13~git20140911/etc/init.d/debomatic
@@ -13,7 +13,7 @@ NAME=debomatic
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
-DAEMON=/usr/bin/debomatic
+DAEMON=/usr/sbin/debomatic
DAEMON_ARGS="-c $DEBOMATIC_CONFIG_FILE $DEBOMATIC_OPTS"
SCRIPTNAME=/etc/init.d/$NAME
@@ -67,7 +67,7 @@ case "$1" in
esac
;;
status)
- status_of_proc /usr/bin/$NAME $NAME
+ status_of_proc /usr/sbin/$NAME $NAME
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
Index: debomatic-0.13~git20140911/lib/systemd/system/debomatic.service
===================================================================
--- debomatic-0.13~git20140911.orig/lib/systemd/system/debomatic.service
+++ debomatic-0.13~git20140911/lib/systemd/system/debomatic.service
@@ -4,8 +4,8 @@ ConditionPathExists=/etc/debomatic/debom
[Service]
Type=simple
-ExecStart=/usr/bin/debomatic -c /etc/debomatic/debomatic.conf -n
-ExecStop=/usr/bin/debomatic -c /etc/debomatic/debomatic.conf -q
+ExecStart=/usr/sbin/debomatic -c /etc/debomatic/debomatic.conf -n
+ExecStop=/usr/sbin/debomatic -c /etc/debomatic/debomatic.conf -q
KillMode=process
SendSIGKILL=no
TimeoutStopSec=0
|