1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00
freebsd-ports/irc/hybserv/files/hybserv.sh
Mark Linimon 76f7ee6a2f HybServ was specifically designed to run with hybrid ircd,
although it *should* work with CSr as well. These services (more or
less same code) are currently used by EFNet / DalNet / ICQ / WFNet /
HybNet / EFNow / Openprojects Network.

Note: this port will create uid 73 and gid 73 if they do not
already exist.  (In non-batch mode the user is queried first).

PR: ports/47128, with a little portlint action added.
2003-11-12 02:31:18 +00:00

16 lines
331 B
Bash

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