aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2009-06-16 07:03:46 +0000
committerLeonardo Arena <rnalrd@gmail.com>2009-06-16 07:03:46 +0000
commitd47858f94d7fe1d2474ff5a207f9177ba015a572 (patch)
treed5fa131038ce64226688df0c780f0fb1996802d9
parent6e4d8c9e744e7956be375a726a8834224e77d085 (diff)
downloadaports-d47858f94d7fe1d2474ff5a207f9177ba015a572.tar.bz2
aports-d47858f94d7fe1d2474ff5a207f9177ba015a572.tar.xz
extra/amavisd-new: pidfile defined as var in init script
-rw-r--r--testing/amavisd-new/amavisd.init6
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 $?
}