3 # eximstatedd Start/Stop eximstated server
6 # description: eximstated - exim queue statistics
8 # processname: eximstated
10 # Source function library
11 . /etc/rc.d/init.d/functions
14 . /etc/sysconfig/network
17 [ -f /etc/sysconfig/eximstated ] && . /etc/sysconfig/eximstated
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 eximstated
30 # See how we were called.
33 # Check if the service is already running?
34 if [ ! -f /var/lock/subsys/eximstated ]; then
35 msg_starting "eximstated"
38 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/eximstated
40 msg_already_running eximstated
46 if [ -f /var/lock/subsys/eximstated ]; then
47 msg_stopping eximstated
49 rm -f /var/lock/subsys/eximstated >/dev/null 2>&1
51 msg_not_running eximstated
60 if [ -f /var/lock/subsys/eximstated ]; then
61 msg_reloaging eximstated
62 killproc eximstatedd -HUP
65 msg_not_running eximstatedd >&2
74 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"