3 # eximstated Start/Stop eximstate server
6 # description: eximstate - exim queue statistics
8 # processname: eximstate
10 # Source function library
11 . /etc/rc.d/init.d/functions
14 . /etc/sysconfig/network
17 [ -f /etc/sysconfig/eximstate ] && . /etc/sysconfig/eximstate
19 # Check that networking is up.
20 if is_yes "${NETWORKING}"; then
21 if [ ! -f /var/lock/subsys/network ]; then
22 # nls "ERROR: Networking is down. %s can't be run." <service>
23 msg_network_down eximstate
30 # See how we were called.
33 # Check if the service is already running?
34 if [ ! -f /var/lock/subsys/eximstate ]; then
35 msg_starting "eximstate"
38 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/eximstate
40 msg_already_running eximstate
46 if [ -f /var/lock/subsys/eximstate ]; then
47 msg_stopping eximstate
49 rm -f /var/lock/subsys/eximstate >/dev/null 2>&1
51 msg_not_running eximstate
60 if [ -f /var/lock/subsys/eximstate ]; then
61 msg_reloaging eximstate
62 killproc eximstated -HUP
64 msg_not_running eximstated
77 # show "Usage: %s {start|stop|status|restart|reload|force-reload}" $0
78 msg_Usage "$0 {start|stop|status|restart|reload|force-reload}"