1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/irc/ircd-hybrid/files/ircd.sh
Clive Lin a2676d1f0e Upgrade to 6.2. Hybrid-5 is unsupported, forget it.
PR: ports/31116
Submitted by: David Taylor <davidt@yadt.co.uk>
2001-10-20 15:10:47 +00:00

15 lines
293 B
Bash

#!/bin/sh
if [ $# -eq 0 -o x$1 = xstart ]; then
if [ -x %PREFIX%/bin/ircd ]; then
su -fm ircd -c %PREFIX%/bin/ircd && echo ' ircd'
fi
fi
if [ x$1 = xstop ]; then
if [ -f %PREFIX%/etc/ircd.pid ]; then
kill `cat %PREFIX%/etc/ircd.pid`
else
# oh well
killall ircd
fi
fi