3 # atftpd This shell script takes care of starting and stopping atftpd
6 # description: amavis statistics collector
7 # processname: amavis-stats
9 # pidfile: /var/run/amavis-stats.pid
11 # Source function library.
12 . /etc/rc.d/init.d/functions
14 # Source networking configuration.
15 . /etc/sysconfig/network
17 # Check that networking is up.
18 if is_yes "${NETWORKING}"; then
19 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
20 msg_network_down "Amavis Stats"
29 if [ ! -f /var/lock/subsys/amavis-stats ]; then
30 msg_starting "Amavis Stats"
33 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/amavis-stats
35 msg_already_running "Amavis Stats"
41 if [ -f /var/lock/subsys/amavis-stats ]; then
42 msg_stopping "Amavis Stats"
44 rm -f /var/lock/subsys/amavis-stats >/dev/null 2>&1
46 msg_not_running "Amavis Stats"
51 # See how we were called.
59 restart|reload|force-restart|force-reload)
68 msg_usage "$0 {start|stop|restart|reload|force-restart|force-reload|status}"