diff options
Diffstat (limited to 'testing/amavisd-new/amavisd.init')
-rw-r--r-- | testing/amavisd-new/amavisd.init | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testing/amavisd-new/amavisd.init b/testing/amavisd-new/amavisd.init index c96f2aeb9..23f92af3f 100644 --- a/testing/amavisd-new/amavisd.init +++ b/testing/amavisd-new/amavisd.init @@ -1,5 +1,7 @@ #!/sbin/runscript +PIDFILE="/var/amavis/amavisd.pid" + depend() { need net use logger @@ -9,13 +11,13 @@ depend() { start() { ebegin "Starting amavisd-new" - start-stop-daemon --start --quiet --name amavisd --pidfile /var/amavis/amavisd.pid \ + 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 /var/amavis/amavisd.pid + start-stop-daemon --stop --quiet --pidfile ${PIDFILE} eend $? } |