--- ./ulogd.init.fedora 2004-03-23 23:36:12.000000000 +0100 +++ ./ulogd.init 2005-11-13 18:52:09.000000000 +0100 @@ -1,16 +1,23 @@ #!/bin/sh # -# chkconfig: 345 81 19 +# chkconfig: - 81 19 # description: ulogd is the userspace logging daemon for netfilter/iptables # . /etc/rc.d/init.d/functions +prog="ulogd" + +# Source networking configuration. +. /etc/sysconfig/network + +# Check that networking is up. +[ "$NETWORKING" = "no" ] && exit 0 function start() { - printf "Starting %s: " "ulogd" + echo -n $"Starting $prog: " daemon /usr/sbin/ulogd -d echo touch /var/lock/subsys/ulogd @@ -19,7 +26,7 @@ function stop() { - printf "Stopping %s: " "ulogd" + echo -n $"Stopping $prog: " killproc ulogd echo rm -f /var/lock/subsys/ulogd @@ -28,6 +35,7 @@ function reload() { + echo -n $"Reloading $prog: " pid=`pidof ulogd` if [ "x$pid" != "x" ]; then kill -HUP $pid 2>/dev/null @@ -54,8 +62,8 @@ status ulogd ;; *) - printf "Usage: %s {start|stop|status|restart|reload}\n" "ulogd" - exit 1 + echo $"Usage: $0 {start|stop|status|restart|reload}" + exit 2 esac exit 0