From 5dc972444c0f2727f5b042f8161269b800aae260 Mon Sep 17 00:00:00 2001 From: Marcin Deranek Date: Fri, 3 Oct 2014 23:02:00 +0200 Subject: Get rid of QA warning --- net-mail/sympa/files/sympa-6.1.initd | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'net-mail/sympa/files/sympa-6.1.initd') 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 } -- cgit v1.2.3