blob: c9f2dac605d61939451686881cedae5124645ac5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/sh
### BEGIN INIT INFO
# provides: sitesummary-client
# required-start: $network $remote_fs
# required-stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Report status to sitesummary server after boot
# Description: Report to sitesummary server 5 minutes
# after the machine boots normally (not in single user)
### END INIT INFO
PATH=/bin:/usr/bin:/sbin:/usr/sbin
CLIENT=/usr/sbin/sitesummary-client
REPORTDELAY=300
[ -f /etc/default/sitesummary-client ] && . /etc/default/sitesummary-client
test -x $CLIENT || exit 0
case "$1" in
start)
( sleep $REPORTDELAY ; nice $CLIENT ) < /dev/null > /dev/null 2>&1 &
;;
stop|reload|force-reload|restart)
;;
*)
echo "Usage: /etc/init.d/atd {start|stop|restart|force-reload|reload}"
exit 1
;;
esac
exit 0
|