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 -a "$1" != stop -a "$1" != status ]; then
22 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
45 if [ -f /var/lock/subsys/eximstate ]; then
46 msg_stopping eximstate
48 rm -f /var/lock/subsys/eximstate >/dev/null 2>&1
50 msg_not_running eximstate
59 if [ -f /var/lock/subsys/eximstate ]; then
60 msg_reloaging eximstate
61 killproc eximstated -HUP
64 msg_not_running eximstated >&2
73 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"