4 # Provides: nhsupsclient
5 # Required-Start: $local_fs $remote_fs $network
6 # Required-Stop: $local_fs $remote_fs $network
7 # Default-Start: 2 3 4 5
9 # Short-Description: NHS UPS Client
12 NHSUPSCLIENT
=/usr
/local
/nhs
/nhsupsclient
13 PIDFILE
=/var
/lib
/nhsups
/nhsupsclient.pid
20 stat_busy
"Starting NHS UPS Client Daemon"
28 if [ -e $PIDFILE ]; then
29 stat_busy
"Stopping NHS UPS Client Daemon"
31 kill $
(cat $PIDFILE) ||
rm $PIDFILE
43 restart | reload | force-reload
)
49 if [ -e $PIDFILE ]; then
50 echo "Serviço iniciado.";
52 echo "Serviço parado.";
56 echo "Uso: $0 {start|stop|restart|reload|force-reload|status}"