summaryrefslogtreecommitdiff
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
parent08be912ab0052acfd041725c341f37b91a5840c7 (diff)
downloadslackbuilds-8e08bbd4b89d68ba2b1addc9cf5c07681f7ac2d7.tar.gz
network/ircd-hybrid: Create piddir during init
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--network/ircd-hybrid/ircd-hybrid.SlackBuild4
-rw-r--r--network/ircd-hybrid/rc.ircd.new3
2 files changed, 3 insertions, 4 deletions
diff --git a/network/ircd-hybrid/ircd-hybrid.SlackBuild b/network/ircd-hybrid/ircd-hybrid.SlackBuild
index b1bbef2c35..d7eb50eca4 100644
--- a/network/ircd-hybrid/ircd-hybrid.SlackBuild
+++ b/network/ircd-hybrid/ircd-hybrid.SlackBuild
@@ -119,10 +119,6 @@ mkdir -p $PKG/var/log/ircd
chown ircd:ircd $PKG/var/log/ircd
chmod 0755 $PKG/var/log/ircd
-mkdir -p $PKG/var/run/ircd
-chown ircd:ircd $PKG/var/run/ircd
-chmod 0750 $PKG/var/run/ircd
-
mkdir -p $PKG/var/lib/ircd
chown ircd:ircd $PKG/var/lib/ircd
chmod 0750 $PKG/var/lib/ircd
diff --git a/network/ircd-hybrid/rc.ircd.new b/network/ircd-hybrid/rc.ircd.new
index 9011ea8533..056641aea9 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
}