3 # etad This shell script takes care of starting and stopping
4 # etad (ETA UPS daemon).
6 # chkconfig: 2345 10 99
8 # description: etad is the print daemon required for etad to work properly. \
9 # It is basically a server that monitor your UPS.
12 # config: /etc/sysconfig/etad
15 # Source function library
16 . /etc/rc.d/init.d/functions
19 . /etc/sysconfig/network
22 [ -f /etc/sysconfig/etad ] && . /etc/sysconfig/etad
25 # See how we were called.
28 # Check if the service is already running?
29 if [ ! -f /var/lock/subsys/etad ]; then
33 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/etad
35 msg_Already_Running Lpd
41 if [ -f /var/lock/subsys/etad ]; then
44 rm -f /var/lock/subsys/etad >/dev/null 2>&1
59 msg_Usage "$0 {start|stop|status|restart}"