3 # gld GLD - standalone greylisting server for Postfix
5 # chkconfig: 2345 79 31
6 # description: GLD - standalone greylisting server for Postfix
9 # pidfile: /var/run/gld.pid
12 # Source function library
13 . /etc/rc.d/init.d/functions
16 . /etc/sysconfig/network
19 [ -f /etc/sysconfig/gld ] && . /etc/sysconfig/gld
21 # Check that networking is up.
22 if is_yes "${NETWORKING}"; then
23 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
33 # See how we were called.
36 # Check if the service is already running?
37 if [ ! -f /var/lock/subsys/gld ]; then
41 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/gld
43 msg_already_running gld
47 if [ -f /var/lock/subsys/gld ]; then
50 rm -f /var/lock/subsys/gld >/dev/null 2>&1
61 if [ -f /var/lock/subsys/gld ]; then
66 msg_not_running gld >&2
75 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"