summaryrefslogtreecommitdiff
path: root/net-mail/sympa/files
diff options
context:
space:
mode:
authorMarcin Deranek <marcin.deranek@slonko.net>2014-10-03 23:02:00 +0200
committerMarcin Deranek <marcin.deranek@slonko.net>2014-10-03 23:02:00 +0200
commit5dc972444c0f2727f5b042f8161269b800aae260 (patch)
tree0309a1ffcc21a10e9afd5e91b9d4c635c3daae17 /net-mail/sympa/files
parentd4f7dd65946d9d1aca0be0266d9070a2fb23815f (diff)
downloadportage-5dc972444c0f2727f5b042f8161269b800aae260.tar.gz
portage-5dc972444c0f2727f5b042f8161269b800aae260.tar.bz2
portage-5dc972444c0f2727f5b042f8161269b800aae260.zip
Get rid of QA warning
Diffstat (limited to 'net-mail/sympa/files')
-rw-r--r--net-mail/sympa/files/sympa-6.1.initd7
1 files changed, 4 insertions, 3 deletions
diff --git a/net-mail/sympa/files/sympa-6.1.initd b/net-mail/sympa/files/sympa-6.1.initd
index 4a96af8..1b2a6bb 100644
--- a/net-mail/sympa/files/sympa-6.1.initd
+++ b/net-mail/sympa/files/sympa-6.1.initd
@@ -4,6 +4,7 @@ sympaconf="/etc/sympa/sympa.conf"
wwsympaconf="/etc/sympa/wwsympa.conf"
data_structure="/etc/sympa/data_structure.version"
sympadir="/usr"
+rundir="/var/run/sympa"
depend() {
use logger mysql postgres ldap
@@ -12,14 +13,14 @@ depend() {
sympa_start() {
ebegin "Starting Sympa module $1.pl: "
- start-stop-daemon --start --quiet --pidfile /var/run/sympa/$1.pid --exec ${sympadir}/sbin/$1.pl
+ start-stop-daemon --start --quiet --pidfile "${rundir}"/$1.pid --exec ${sympadir}/sbin/$1.pl
eend $?
}
sympa_stop() {
- if [ -f "/var/run/sympa/$1.pid" ]; then
+ if [ -f "${rundir}"/$1.pid ]; then
ebegin "Stopping Sympa module $1.pl: "
- start-stop-daemon --stop --retry 30 --quiet --pidfile /var/run/sympa/$1.pid
+ start-stop-daemon --stop --retry 30 --quiet --pidfile "${rundir}"/$1.pid
eend $?
fi
}