- Fix rc script

This commit is contained in:
Pav Lucistnik 2005-09-18 15:05:18 +00:00
parent 1d762a91a0
commit 9864a39f44
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=143077

View file

@ -9,17 +9,17 @@
# Add the following line(s) to /etc/rc.conf:
# ircd_enable (bool): Set to "NO" by default, set it to "YES" to enable ircd
# ircd_user (str): Default to "%%USER%%"
# ircd_user (str): Default to "ircd"
ircd_enable=${ircd_enable-"NO"}
ircd_user=${ircd_user-"ircd"}
. /etc/rc.subr
. %%RC_SUBR%%
name="ircd"
rcvar=`set_rcvar`
pidfile="/usr/local/etc/ptlink-ircd/ircd.pid"
command="/usr/local/bin/ircd"
pidfile="%%PREFIX%%/etc/ptlink-ircd/ircd.pid"
command="%%PREFIX%%/bin/ircd"
load_rc_config "$name"
run_rc_command "$1"