modified init script to check for /run-dir

This commit is contained in:
Manuel Friedli 2013-01-12 15:27:18 +00:00
parent 25a3ba4a97
commit 148cf9e7bd
2 changed files with 6 additions and 1 deletions

View file

@ -32,6 +32,11 @@ start() {
local services
services=$(grep -v ^# /etc/jabber/jabberd.cfg | grep '..*' | awk '{print $1 ":" $2}')
eindent
if [ ! -d /var/run/jabber ] ; then
mkdir /var/run/jabber || die "Can't create run directory /var/run/jabber"
fi
for service in ${services}; do
cfgfile=$(echo ${service} | cut -d ':' -f 2)