From 7bd568508b1d9e89627e3388ddfc767d28602e15 Mon Sep 17 00:00:00 2001 From: Sergey Ivanov Date: Mon, 6 Aug 2018 16:41:01 -0400 Subject: [PATCH] The same (creating /var/run/openarc) directory in SysV initscripts --- contrib/init/generic/openarc | 1 + contrib/init/redhat/openarc.in | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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