summaryrefslogtreecommitdiff
path: root/net-irc/atheme-services/files/atheme-services.initd
diff options
context:
space:
mode:
Diffstat (limited to 'net-irc/atheme-services/files/atheme-services.initd')
-rw-r--r--net-irc/atheme-services/files/atheme-services.initd27
1 files changed, 27 insertions, 0 deletions
diff --git a/net-irc/atheme-services/files/atheme-services.initd b/net-irc/atheme-services/files/atheme-services.initd
new file mode 100644
index 000000000000..46a868380aa3
--- /dev/null
+++ b/net-irc/atheme-services/files/atheme-services.initd
@@ -0,0 +1,27 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+extra_started_commands="reload"
+
+command="/usr/bin/atheme-services"
+command_user="atheme-services"
+pidfile="/var/run/atheme/atheme.pid"
+
+name="Atheme IRC Services"
+
+depend() {
+ need net
+ use ircd
+ provide irc-services
+}
+
+start_pre() {
+ checkpath -d "/var/run/atheme" -o atheme-services
+}
+
+reload() {
+ ebegin "Reloading ${SVCNAME}"
+ start-stop-daemon --signal HUP --pidfile "${pidfile}"
+ eend $?
+}