Files
openrouter/rootfs/etc/init.d/klogd
T

30 lines
473 B
Bash
Executable File

#!/bin/sh
. /etc/init.d/init-functions
case "$1" in
start)
notify "Starting klogd "
klogd
check $?
;;
stop)
notify "Stopping klogd "
if [ -f /var/run/klogd.pid ]; then
kill $(cat /var/run/klogd.pid)
check $?
rm /var/run/klogd.pid &> /dev/null
else
notify "[$Red Klogd is not running $Color_Off]\n"
fi
;;
restart|reload)
"$0" stop
"$0" start
;;
*)
echo "klogd init script usage: $0 {start|stop|restart}"
return 1
esac
return $?