4 # Provides: nhsupsserver
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 Server
12 NHSUPSSERVER
=/usr
/local
/nhs
/nhsupsserver
13 PIDFILE
=/var
/lib
/nhsups
/nhsupsserver.pid
20 stat_busy
"Starting NHS UPS Server Daemon"
22 add_daemon nhsupsServer
28 if [ -e $PIDFILE ]; then
29 stat_busy
"Stopping NHS UPS Server Daemon"
30 rm_daemon nhsupsServer
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}"