mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
44ca531f8d
ircd-hybrid-ru is russian version of well known hybrid IRC server with plently number of features. it can handle russian channel names, nicknames and harset recoding PR: 60244 Submitted by: Evgueni V. Gavrilov <aquatique@rusunix.org>
24 lines
368 B
Bash
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
|