summaryrefslogtreecommitdiff
path: root/net-irc/shadowircd/files/shadowircd.initd-r1
diff options
context:
space:
mode:
Diffstat (limited to 'net-irc/shadowircd/files/shadowircd.initd-r1')
-rw-r--r--net-irc/shadowircd/files/shadowircd.initd-r126
1 files changed, 26 insertions, 0 deletions
diff --git a/net-irc/shadowircd/files/shadowircd.initd-r1 b/net-irc/shadowircd/files/shadowircd.initd-r1
new file mode 100644
index 000000000000..38ccab8b3f3f
--- /dev/null
+++ b/net-irc/shadowircd/files/shadowircd.initd-r1
@@ -0,0 +1,26 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/bin/shadowircd-ircd"
+command_args="${SHADOWIRCD_OPTS}"
+command_user="shadowircd"
+extra_started_commands="reload"
+pidfile="/run/shadowircd/ircd.pid"
+
+depend() {
+ use dns net
+ provide ircd
+}
+
+start_pre() {
+ ebegin "Creating /run/shadowircd for ${SVCNAME}"
+ checkpath --directory --owner :shadowircd --mode 0770 /run/shadowircd
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading ${SVCNAME}"
+ start-stop-daemon --signal HUP --pidfile "${pidfile}"
+ eend $?
+}