diff options
Diffstat (limited to 'main/amavisd-new/amavisd.init')
-rw-r--r-- | main/amavisd-new/amavisd.init | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/main/amavisd-new/amavisd.init b/main/amavisd-new/amavisd.init new file mode 100644 index 000000000..23f92af3f --- /dev/null +++ b/main/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 $? +} |