aboutsummaryrefslogtreecommitdiff
path: root/network/ircd-hybrid/rc.ircd.new
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2021-07-18 02:22:07 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-07-19 16:23:32 +0700
commit8e08bbd4b89d68ba2b1addc9cf5c07681f7ac2d7 (patch)
tree9ca6aa91d04511a93bfac24a94274b5a834636d2 /network/ircd-hybrid/rc.ircd.new
parent08be912ab0052acfd041725c341f37b91a5840c7 (diff)
network/ircd-hybrid: Create piddir during init
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/ircd-hybrid/rc.ircd.new')
-rw-r--r--network/ircd-hybrid/rc.ircd.new3
1 files changed, 3 insertions, 0 deletions
diff --git a/network/ircd-hybrid/rc.ircd.new b/network/ircd-hybrid/rc.ircd.new
index 9011ea85335c6..056641aea9635 100644
--- a/network/ircd-hybrid/rc.ircd.new
+++ b/network/ircd-hybrid/rc.ircd.new
@@ -21,6 +21,9 @@ ircd_start() {
fi
echo "Starting IRC daemon ..."
+ mkdir -p $(dirname $PIDFILE)
+ chown ircd:ircd $(dirname $PIDFILE)
+ chmod 0750 $(dirname $PIDFILE)
sudo -u $NAME $DAEMON $DAEMON_ARGS
}