mirror of
https://git.freebsd.org/ports.git
synced 2025-06-18 03:00:42 -04:00
*** IMPORTANT: *** - The old config format WILL NOT WORK - The old kline format WILL NOT WORK Please read the INSTALL file for more information PR: 60372 Submitted by: maintainer
14 lines
293 B
Bash
14 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
|