1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/irc/ircd-hybrid-ru/files/ircd-hybrid-ru.sh.sample
Martin Wilke 7c95400dd7 - Update to 7.2.1
PR:		ports/106485
Submitted by:	Evgueni V. Gavrilov <aquatique-ports@rambler.ru> (maintainer)
2006-12-08 21:54:59 +00:00

24 lines
368 B
Bash

#!/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