diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2009-06-16 07:03:46 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2009-06-16 07:03:46 +0000 |
commit | d47858f94d7fe1d2474ff5a207f9177ba015a572 (patch) | |
tree | d5fa131038ce64226688df0c780f0fb1996802d9 | |
parent | 6e4d8c9e744e7956be375a726a8834224e77d085 (diff) | |
download | aports-d47858f94d7fe1d2474ff5a207f9177ba015a572.tar.bz2 aports-d47858f94d7fe1d2474ff5a207f9177ba015a572.tar.xz |
extra/amavisd-new: pidfile defined as var in init script
-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 c96f2aeb94..23f92af3f3 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 $? } |