slackbuilds_ponce/system/ulogd/rc.ulogd

39 lines
590 B
Text
Raw Normal View History

2010-05-11 15:18:47 +02:00
#!/bin/sh
# Start/stop/restart the userspace logging daemon ulogd
#
# Written for Slackware Linux by Robby Workman <http://rlworkman.net>
# ## (by modifying one of Pat's scripts)
ulogd_start() {
if [ -x /usr/sbin/ulogd ]; then
2010-05-12 17:46:10 +02:00
echo "Starting ulogd daemon: /usr/sbin/ulogd "
2010-05-11 15:18:47 +02:00
/usr/sbin/ulogd -d 2> /dev/null
2010-05-12 17:46:10 +02:00
sleep 1
2010-05-11 15:18:47 +02:00
fi
}
ulogd_stop() {
2010-05-12 17:46:10 +02:00
killall ulogd 2> /dev/null
2010-05-11 15:18:47 +02:00
}
ulogd_restart() {
ulogd_stop
2010-05-12 17:46:10 +02:00
sleep 1
2010-05-11 15:18:47 +02:00
ulogd_start
}
case "$1" in
'start')
ulogd_start
;;
'stop')
ulogd_stop
;;
'restart')
ulogd_restart
;;
*)
echo "usage $0 start|stop|restart"
esac