update init scripts for older Debian systems (Dave Pratt)
This commit is contained in:
+1
-1
@@ -25,4 +25,4 @@ This directory contains
|
|||||||
Simply copy the debian/ directory to the top-level source directory,
|
Simply copy the debian/ directory to the top-level source directory,
|
||||||
adapt the call in debian/rules to your wishes, call
|
adapt the call in debian/rules to your wishes, call
|
||||||
dpkg -rfakeoot -sd
|
dpkg -rfakeoot -sd
|
||||||
and you're done.
|
and you're done.
|
||||||
|
|||||||
@@ -30,12 +30,12 @@ case "$1" in
|
|||||||
start)
|
start)
|
||||||
printf "Starting ${DESC}: "
|
printf "Starting ${DESC}: "
|
||||||
start-stop-daemon --start --quiet --exec ${DAEMON} -- ${OPTIONS}
|
start-stop-daemon --start --quiet --exec ${DAEMON} -- ${OPTIONS}
|
||||||
printf "${NAME}."
|
printf "${NAME}.\n"
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
printf "Stopping ${DESC}: "
|
printf "Stopping ${DESC}: "
|
||||||
start-stop-daemon --stop --oknodo --quiet --exec ${DAEMON}
|
start-stop-daemon --stop --oknodo --quiet --exec ${DAEMON}
|
||||||
printf "${NAME}."
|
printf "${NAME}.\n"
|
||||||
;;
|
;;
|
||||||
restart|force-reload)
|
restart|force-reload)
|
||||||
$0 stop
|
$0 stop
|
||||||
|
|||||||
@@ -30,12 +30,12 @@ case "$1" in
|
|||||||
start)
|
start)
|
||||||
printf "Starting ${DESC}: "
|
printf "Starting ${DESC}: "
|
||||||
start-stop-daemon --start --quiet --exec ${DAEMON} -- ${OPTIONS}
|
start-stop-daemon --start --quiet --exec ${DAEMON} -- ${OPTIONS}
|
||||||
printf "${NAME}."
|
printf "${NAME}.\n"
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
printf "Stopping ${DESC}: "
|
printf "Stopping ${DESC}: "
|
||||||
start-stop-daemon --stop --oknodo --quiet --exec ${DAEMON}
|
start-stop-daemon --stop --oknodo --quiet --exec ${DAEMON}
|
||||||
printf "${NAME}."
|
printf "${NAME}.\n"
|
||||||
;;
|
;;
|
||||||
restart|force-reload)
|
restart|force-reload)
|
||||||
$0 stop
|
$0 stop
|
||||||
|
|||||||
Reference in New Issue
Block a user