Skip to content

Commit

Permalink
The same (creating /var/run/openarc) directory in SysV initscripts
Browse files Browse the repository at this point in the history
  • Loading branch information
seriv authored and mskucherawy committed Nov 15, 2018
1 parent 8d7dde5 commit 7bd5685
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions contrib/init/generic/openarc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion contrib/init/redhat/openarc.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7bd5685

Please sign in to comment.