diff options
author | Nishant Limbachia <nishant@mnspace.net> | 2010-05-12 17:45:06 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 17:45:06 +0200 |
commit | 85ec83cc9328ed02204a4de7cd88906f0f0b231e (patch) | |
tree | e23cc3cd315beb3800b9049065a5588faf3238c9 /system/clamsmtp/rc.clamsmtpd | |
parent | 45e598521689a4f3979c291ff1ab8aeb1aeba336 (diff) |
system/clamsmtp: Updated for version 1.10
Diffstat (limited to 'system/clamsmtp/rc.clamsmtpd')
-rw-r--r-- | system/clamsmtp/rc.clamsmtpd | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/system/clamsmtp/rc.clamsmtpd b/system/clamsmtp/rc.clamsmtpd index c6a7e61dc84c..d561a8d17385 100644 --- a/system/clamsmtp/rc.clamsmtpd +++ b/system/clamsmtp/rc.clamsmtpd @@ -13,8 +13,12 @@ CONFIG="/etc/clamsmtpd.conf" PIDFILE="/var/run/clamav/clamsmtpd.pid" clamsmtpd_start() { - echo "Starting clamsmtp daemon" - /usr/sbin/clamsmtpd -f $CONFIG -p $PIDFILE + if [ -f $PIDFILE ]; then + echo "Clamsmtp daemon seems to be running with PID: $(cat $PIDFILE)" + else + echo "Starting clamsmtp daemon" + /usr/sbin/clamsmtpd -f $CONFIG -p $PIDFILE + fi } clamsmtpd_stop() { @@ -43,9 +47,8 @@ case "$1" in 'restart') clamsmtpd_restart ;; -'*') +*) echo "USAGE: $0 start|stop|restart" exit 1 ;; esac - |