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 != stop -a != status ]; then
22 # nls "ERROR: Networking is down. %s can't be run." <service>
23 msg_network_down eximstated
31 # See how we were called.
34 # Check if the service is already running?
35 if [ ! -f /var/lock/subsys/eximstated ]; then
36 msg_starting "eximstated"
39 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/eximstated
41 msg_already_running eximstated
47 if [ -f /var/lock/subsys/eximstated ]; then
48 msg_stopping eximstated
50 rm -f /var/lock/subsys/eximstated >/dev/null 2>&1
52 msg_not_running eximstated
61 if [ -f /var/lock/subsys/eximstated ]; then
62 msg_reloaging eximstated
63 killproc eximstatedd -HUP
66 msg_not_running eximstatedd >&2
75 # show "Usage: %s {start|stop|restart|reload|force-reload|status}"
76 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"