mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
0c6f5a4e72
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>
24 lines
350 B
Bash
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
|