mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-29 13:00:32 +01:00
38 lines
609 B
Text
38 lines
609 B
Text
|
#!/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
|
||
|
/bin/echo "Starting ulogd daemon: /usr/sbin/ulogd "
|
||
|
/usr/sbin/ulogd -d 2> /dev/null
|
||
|
/bin/sleep 1
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
ulogd_stop() {
|
||
|
/bin/killall ulogd 2> /dev/null
|
||
|
}
|
||
|
|
||
|
ulogd_restart() {
|
||
|
ulogd_stop
|
||
|
/bin/sleep 1
|
||
|
ulogd_start
|
||
|
}
|
||
|
|
||
|
case "$1" in
|
||
|
'start')
|
||
|
ulogd_start
|
||
|
;;
|
||
|
'stop')
|
||
|
ulogd_stop
|
||
|
;;
|
||
|
'restart')
|
||
|
ulogd_restart
|
||
|
;;
|
||
|
*)
|
||
|
echo "usage $0 start|stop|restart"
|
||
|
esac
|