diff --git a/contrib/init/generic/openarc b/contrib/init/generic/openarc index 670fc83f..078f38ce 100644 --- a/contrib/init/generic/openarc +++ b/contrib/init/generic/openarc @@ -143,6 +143,7 @@ fi od_start() { echo -n "Starting OpenARC Milter: " + install -d -m 0755 -o openarc -g openarc /var/run/openarc od_daemon $DAEMON -c $CONFIG $ARGS if [ $? -eq 0 ]; then log_success_msg $NAME diff --git a/contrib/init/redhat/openarc.in b/contrib/init/redhat/openarc.in index 99263b71..d34289d7 100644 --- a/contrib/init/redhat/openarc.in +++ b/contrib/init/redhat/openarc.in @@ -43,7 +43,8 @@ start() { echo OpenARC already running as pid $PID exit 2; else - daemon $DAEMON -c $CONF_FILE -P $PID_FILE + /usr/bin/install -d -m 0755 -o openarc -g openarc @localstatedir@/run/openarc + daemon $DAEMON -x $CONF_FILE -P $PID_FILE RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/openarc echo