diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2021-07-18 02:22:07 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-07-19 16:23:32 +0700 |
commit | 8e08bbd4b89d68ba2b1addc9cf5c07681f7ac2d7 (patch) | |
tree | 9ca6aa91d04511a93bfac24a94274b5a834636d2 /network | |
parent | 08be912ab0052acfd041725c341f37b91a5840c7 (diff) |
network/ircd-hybrid: Create piddir during init
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/ircd-hybrid/ircd-hybrid.SlackBuild | 4 | ||||
-rw-r--r-- | network/ircd-hybrid/rc.ircd.new | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/network/ircd-hybrid/ircd-hybrid.SlackBuild b/network/ircd-hybrid/ircd-hybrid.SlackBuild index b1bbef2c359d9..d7eb50eca49df 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 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 } |