diff options
Diffstat (limited to 'debian/inetutils-syslogd.init')
-rw-r--r-- | debian/inetutils-syslogd.init | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/debian/inetutils-syslogd.init b/debian/inetutils-syslogd.init index 25da8a2..f408f59 100644 --- a/debian/inetutils-syslogd.init +++ b/debian/inetutils-syslogd.init @@ -19,6 +19,8 @@ test -x $DAEMON || exit 0 set -e +. /lib/lsb/init-functions + # Create a xconsole pipe if it does not exist. # Don't create it if Linux's devfs is used, and symlink it on kFreeBSD as it # does not allow pipes on /dev. @@ -42,30 +44,31 @@ fi case "$1" in start) - echo -n "Starting $DESC: " + log_daemon_msg "Starting $DESC" "$NAME" start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE \ --exec $DAEMON - echo "$NAME." + log_end_msg $? ;; stop) - echo -n "Stopping $DESC: " + log_daemon_msg "Stopping $DESC" "$NAME" start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE \ --exec $DAEMON - echo "$NAME." + log_end_msg $? ;; reload|force-reload) - echo "Reloading $DESC configuration files." + log_action_begin_msg "Reloading $DESC configuration files" start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE \ --exec $DAEMON + log_action_end_msg $? ;; restart) - echo -n "Restarting $DESC: " + log_daemon_msg "Restarting $DESC" "$NAME" start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE \ --exec $DAEMON sleep 1 start-stop-daemon --start --quiet --pidfile $PIDFILE \ --exec $DAEMON - echo "$NAME." + log_end_msg $? ;; *) N=/etc/init.d/inetutils-$NAME |