3 # processname: stargazer
4 # config: /etc/stargazer/stargazer.conf
5 # pidfile: /var/run/stargazer.pid
7 # Source function library.
8 . /etc/init.d/functions
10 # Source networking configuration.
11 . /etc/sysconfig/network
13 # Source stargazer configureation.
17 # Check that networking is up.
18 [ ${NETWORKING} = "no" ] && exit 0
20 [ -f /sbin/stargazer ] || exit 0
28 echo -n $"Starting $prog: "
29 /etc/stargazer/first 2> /dev/null
30 daemon /sbin/stargazer
32 /etc/stargazer/last 2> /dev/null
34 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/stargazer
40 echo -n $"Shutting down $prog: "
44 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/stargazer
48 # See how we were called.
66 echo $"Usage: $0 {start|stop|restart|status}"