blob: 005b97cc8ab150602f2acdb2006c88f4a21585a8 (
plain)
1 #!/bin/sh
2 #
3 # /etc/rc.d/uptimed: start/stop uptime record tracking daemon
4 #
5
6 case $1 in
7 start)
8 /usr/sbin/uptimed -b
9 /usr/sbin/uptimed
10 ;;
11 stop)
12 test -s /var/run/uptimed.pid && kill `cat /var/run/uptimed.pid`
13 ;;
14 restart)
15 $0 stop
16 sleep 1
17 /usr/sbin/uptimed
18 ;;
19 *)
20 echo "usage: $0 [start|stop|restart]" >&2
21 ;;
22 esac
|