summaryrefslogtreecommitdiffstats
path: root/irc/ircd-ru/files/ircd.sh.sample
diff options
context:
space:
mode:
Diffstat (limited to 'irc/ircd-ru/files/ircd.sh.sample')
-rw-r--r--irc/ircd-ru/files/ircd.sh.sample23
1 files changed, 23 insertions, 0 deletions
diff --git a/irc/ircd-ru/files/ircd.sh.sample b/irc/ircd-ru/files/ircd.sh.sample
new file mode 100644
index 0000000..36d64ef
--- /dev/null
+++ b/irc/ircd-ru/files/ircd.sh.sample
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+PREFIX=$(expr $0 : "\(/.*/\)etc/rc\.d/$(basename $0)\$")
+
+IRCD=${PREFIX}sbin/ircd
+
+case "$1" in
+start)
+ if [ -x $IRCD ]; then
+ $IRCD -u ircd -g ircd >/dev/null 2>&1
+ echo -n ' ircd'
+ fi
+ ;;
+stop)
+ kill `cat /var/run/ircd-ru/ircd.pid` >/dev/null 2>&1
+ echo -n ' ircd'
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ ;;
+esac
+
+exit 0
OpenPOWER on IntegriCloud