76f7ee6a2f
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.
15 lines
331 B
Bash
15 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
|
|
|