mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
2183f56f71
*** 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
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
|