diff options
Diffstat (limited to 'community/dbmail/dbmail.rc.d')
-rw-r--r-- | community/dbmail/dbmail.rc.d | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/community/dbmail/dbmail.rc.d b/community/dbmail/dbmail.rc.d index 92c34e5d2..9286809df 100644 --- a/community/dbmail/dbmail.rc.d +++ b/community/dbmail/dbmail.rc.d @@ -7,9 +7,11 @@ case "$1" in start) + mkdir -p /var/run/dbmail + chown -R nobody:nobody /var/run/dbmail for daemon in $DBMAIL_DAEMONS; do stat_busy "Starting DbMail ${daemon}" - /usr/sbin/${daemon} + /usr/sbin/${daemon} -p /var/run/dbmail/${daemon}.pid if [ $? -gt 0 ]; then stat_fail else @@ -21,7 +23,7 @@ case "$1" in stop) for daemon in $DBMAIL_DAEMONS; do stat_busy "Stopping DbMail ${daemon}" - pid=$(cat /var/run/${daemon}.pid) + pid=$(cat /var/run/dbmail/${daemon}.pid) kill $pid sleep 4 stat_done |