diff options
author | Nishant Limbachia <nishant@mnspace.net> | 2010-05-11 22:26:33 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:26:33 +0200 |
commit | f64823ff4bed529c42fa7bfa22149b25c224b125 (patch) | |
tree | 2331ecd7b6245dd8a29c07cc1d01e88c40641c81 /system/clamsmtp/rc.clamsmtpd | |
parent | 458717de0402720d3aef1bd62585d152d3b44156 (diff) | |
download | slackbuilds-f64823ff4bed529c42fa7bfa22149b25c224b125.tar.gz |
system/clamsmtp: Updated for version 1.10
Diffstat (limited to 'system/clamsmtp/rc.clamsmtpd')
-rw-r--r-- | system/clamsmtp/rc.clamsmtpd | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/system/clamsmtp/rc.clamsmtpd b/system/clamsmtp/rc.clamsmtpd index 559eee4faf..c6a7e61dc8 100644 --- a/system/clamsmtp/rc.clamsmtpd +++ b/system/clamsmtp/rc.clamsmtpd @@ -4,32 +4,33 @@ # # start/stop/restart clamsmtp mail filter daemon # -# To make clamsmtpd start automatically at boot, make this file executable: -# chmod 0755 /etc/rc.d/rc.clamsmtpd -# To edit the startup options, refer to "man 8 clamsmtpd" +# To make ntpd start automatically at boot, make this +# file executable: chmod 755 /etc/rc.d/rc.clamsmtpd +# to edit the startup options refer man 8 clamsmtpd +# CONFIG="/etc/clamsmtpd.conf" -PIDFILE="/var/run/clamsmtpd.pid" +PIDFILE="/var/run/clamav/clamsmtpd.pid" clamsmtpd_start() { - echo "Starting clamsmtp daemon: /usr/sbin/clamsmtpd " - /usr/sbin/clamsmtpd -f $CONFIG -p $PIDFILE + echo "Starting clamsmtp daemon" + /usr/sbin/clamsmtpd -f $CONFIG -p $PIDFILE } clamsmtpd_stop() { - if [ -f $PIDFILE ]; then - echo "Stopping clamsmtp daemon" - /bin/kill $(cat $PIDFILE) 2>/dev/null - else - echo "clamsmtpd doesn't seem to be running... exiting" - exit 1 - fi + if [ -f $PIDFILE ]; then + echo "Stopping clamsmtp daemon" + /bin/kill $(cat $PIDFILE) 2> /dev/null + else + echo "/usr/sbin/clamsmtpd doesn't seem to be running...exiting" + exit 1 + fi } clamsmtpd_restart() { - clamsmtpd_stop - sleep 2 - clamsmtpd_start + clamsmtpd_stop + sleep 5 + clamsmtpd_start } case "$1" in |