mirror of
git://slackware.nl/current.git
synced 2024-12-28 09:59:53 +01:00
37 lines
437 B
Text
37 lines
437 B
Text
|
#!/bin/sh
|
||
|
#
|
||
|
# Start/stop/restart ulogd
|
||
|
#
|
||
|
|
||
|
ulogd_start() {
|
||
|
if [ -x /usr/sbin/ulogd ]; then
|
||
|
echo "Starting ulogd daemon: /usr/sbin/ulogd "
|
||
|
/usr/sbin/ulogd -d 2> /dev/null
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
ulogd_stop() {
|
||
|
killall ulogd 2> /dev/null
|
||
|
}
|
||
|
|
||
|
ulogd_restart() {
|
||
|
ulogd_stop
|
||
|
sleep 1
|
||
|
ulogd_start
|
||
|
}
|
||
|
|
||
|
case "$1" in
|
||
|
'start')
|
||
|
ulogd_start
|
||
|
;;
|
||
|
'stop')
|
||
|
ulogd_stop
|
||
|
;;
|
||
|
'restart')
|
||
|
ulogd_restart
|
||
|
;;
|
||
|
*)
|
||
|
echo "usage $0 start|stop|restart"
|
||
|
esac
|
||
|
|