summaryrefslogtreecommitdiffstats
path: root/irc/ircd-hybrid/files/ircd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'irc/ircd-hybrid/files/ircd.sh')
-rw-r--r--irc/ircd-hybrid/files/ircd.sh19
1 files changed, 16 insertions, 3 deletions
diff --git a/irc/ircd-hybrid/files/ircd.sh b/irc/ircd-hybrid/files/ircd.sh
index c594f09..9fb77f3 100644
--- a/irc/ircd-hybrid/files/ircd.sh
+++ b/irc/ircd-hybrid/files/ircd.sh
@@ -1,4 +1,17 @@
#!/bin/sh
-[ -x /usr/local/sbin/ircd ] \
-&& /usr/local/sbin/ircd >/dev/null 2>&1 \
-&& echo -n " ircd"
+
+case "$1" in
+start)
+ [ -x /usr/local/sbin/ircd ] \
+ && /usr/local/sbin/ircd >/dev/null 2>&1 \
+ && echo -n " ircd"
+stop)
+ killall ircd && echo -n ' ircd'
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ exit 64
+ ;;
+esac
+
+exit 0
OpenPOWER on IntegriCloud