1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/irc/ircd-ru/files/ircd.sh.sample
Edwin Groothuis 0c6f5a4e72 [MAINTAINER UPDATE] irc/ircd-ru New release (1.0.7 > 1.0.7-02-stable)
and some minor changes in port

	Released new version ircd-ru (1.0.7-02-stable).
	Cleaning port.

PR:		ports/55761
Submitted by:	Khamushkin Ilya <ilya@ircd.ru>
2003-08-23 13:34:20 +00:00

24 lines
350 B
Bash

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