summaryrefslogtreecommitdiff
path: root/network/atheme/rc.atheme.new
diff options
context:
space:
mode:
authorDavid Woodfall <dave@dawoodfall.net>2017-10-27 19:46:31 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-10-28 07:07:04 +0700
commita92a72b5c96a6e1e9525f2a6c996cfa47f198492 (patch)
tree65bbdb45347e044ff5e8cf5608b2f31164524653 /network/atheme/rc.atheme.new
parent609f70cc53121c7b8c74f39eadebd688b3d19353 (diff)
downloadslackbuilds-a92a72b5c96a6e1e9525f2a6c996cfa47f198492.tar.gz
network/atheme: Added (Atheme IRC Services).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/atheme/rc.atheme.new')
-rw-r--r--network/atheme/rc.atheme.new33
1 files changed, 33 insertions, 0 deletions
diff --git a/network/atheme/rc.atheme.new b/network/atheme/rc.atheme.new
new file mode 100644
index 0000000000..4be277a5bd
--- /dev/null
+++ b/network/atheme/rc.atheme.new
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+# Startup file for atheme services.
+# Note that atheme needs starting after your IRC daemon.
+
+start() {
+ atheme-services
+}
+
+stop() {
+ killall atheme-services
+}
+
+hup() {
+ killall -HUP atheme-services
+}
+
+case "$1" in
+ 'start')
+ start
+ ;;
+ 'stop')
+ stop
+ ;;
+ 'hup')
+ hup
+ ;;
+ 'restart')
+ stop
+ sleep 1
+ start
+ ;;
+esac