mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
a2676d1f0e
PR: ports/31116 Submitted by: David Taylor <davidt@yadt.co.uk>
15 lines
293 B
Bash
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
|