diff options
Diffstat (limited to 'extra/amavisd-new/amavisd.init')
-rw-r--r-- | extra/amavisd-new/amavisd.init | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/extra/amavisd-new/amavisd.init b/extra/amavisd-new/amavisd.init new file mode 100644 index 000000000..23f92af3f --- /dev/null +++ b/extra/amavisd-new/amavisd.init @@ -0,0 +1,23 @@ +#!/sbin/runscript + +PIDFILE="/var/amavis/amavisd.pid" + +depend() { + need net + use logger + use antivirus + before mta +} + +start() { + ebegin "Starting amavisd-new" + start-stop-daemon --start --quiet --name amavisd --pidfile ${PIDFILE} \ + --exec /usr/sbin/amavisd + eend $? +} + +stop() { + ebegin "Stopping amavisd-new" + start-stop-daemon --stop --quiet --pidfile ${PIDFILE} + eend $? +} |