diff options
Diffstat (limited to 'main/clamsmtp/clamsmtpd.initd')
-rw-r--r-- | main/clamsmtp/clamsmtpd.initd | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/main/clamsmtp/clamsmtpd.initd b/main/clamsmtp/clamsmtpd.initd new file mode 100644 index 0000000000..dbd817f370 --- /dev/null +++ b/main/clamsmtp/clamsmtpd.initd @@ -0,0 +1,22 @@ +#!/sbin/runscript + +NAME=clamsmtpd +DAEMON=/usr/sbin/$NAME + +depend() { + need net +} + +start() { + ebegin "Starting ${NAME}" + start-stop-daemon --start --quiet \ + --exec ${DAEMON} -- ${OPTS} + eend $? +} + +stop() { + ebegin "Stopping ${NAME}" + start-stop-daemon --stop --quiet \ + --exec ${DAEMON} + eend $? +} |