aboutsummaryrefslogtreecommitdiff
path: root/system/clamsmtp/rc.clamsmtpd
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2010-04-24 04:08:46 -0500
committerErik Hanson <erik@slackbuilds.org>2010-05-15 10:50:25 +0200
commit04934ef77f7d2b32ff68d26b3741b6941f0e64e8 (patch)
tree5a8d260db0ddd0b5166e47fa9872f837e922a17a /system/clamsmtp/rc.clamsmtpd
parentbdf0c4ab734020a12712150c12714bd62d9edecc (diff)
system/clamsmtp: Build bump, script cleanup.
Diffstat (limited to 'system/clamsmtp/rc.clamsmtpd')
-rw-r--r--system/clamsmtp/rc.clamsmtpd14
1 files changed, 7 insertions, 7 deletions
diff --git a/system/clamsmtp/rc.clamsmtpd b/system/clamsmtp/rc.clamsmtpd
index b4ec58edf9d57..e71651d104737 100644
--- a/system/clamsmtp/rc.clamsmtpd
+++ b/system/clamsmtp/rc.clamsmtpd
@@ -1,14 +1,14 @@
#!/bin/sh
+# Copyright (c) 2008-2010, Nishant Limbachia, Hoffman Estates, IL, USA
# /etc/rc.d/rc.clamsmtpd
-# Start/stop/restart clamsmtp mail filter daemon
+# start/stop/restart clamsmtp mail filter daemon
+
+# To make clamsmtp start automatically at boot, make this
+# file executable: chmod 755 /etc/rc.d/rc.clamsmtpd
+# to edit the startup options refer man 8 clamsmtpd
-# To make ntpd start automatically at boot, make this file executable:
-# chmod 755 /etc/rc.d/rc.clamsmtpd
-# and be sure it's called from somewhere (e.g. rc.local)
-#
-# To edit the startup options refer man 8 clamsmtpd
CONFIG="/etc/clamsmtpd.conf"
PIDFILE="/var/run/clamav/clamsmtpd.pid"
@@ -25,7 +25,7 @@ clamsmtpd_start() {
clamsmtpd_stop() {
if [ -f $PIDFILE ]; then
echo "Stopping clamsmtp daemon"
- /bin/kill $(cat $PIDFILE) 2> /dev/null
+ kill -s 15 $(cat $PIDFILE) 2> /dev/null
else
echo "/usr/sbin/clamsmtpd doesn't seem to be running...exiting"
exit 1