blob: f62cb23e98623ee0b0a141346b7e91ffeeebe76a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
PREFIX=$(expr $0 : "\(/.*/\)etc/rc\.d/$(basename $0)\$")
IRCD=${PREFIX}bin/ircd
case "$1" in
start)
if [ -x $IRCD ]; then
su ircdru -c $IRCD >/dev/null 2>&1
echo -n ' ircd-hybrid-ru'
fi
;;
stop)
kill `cat ${PREFIX}/etc/ircd-hybrid-ru/ircd.pid` >/dev/null 2>&1
echo -n ' ircd'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
exit 0
|