- Use more canonical example of rcng script
This commit is contained in:
parent
1c6c41f2b4
commit
7c8e562a00
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=26365
1 changed files with 4 additions and 3 deletions
|
@ -5841,14 +5841,15 @@ USE_SDL+= mixer
|
|||
name="doorman"
|
||||
rcvar=`set_rcvar`
|
||||
|
||||
[ -z "$doorman_enable" ] && doorman_enable="NO"
|
||||
[ -z "$doorman_config" ] && doorman_config="%%PREFIX%%/etc/doormand/doormand.cf"
|
||||
load_rc_config $name
|
||||
|
||||
: ${doorman_enable="NO"}
|
||||
: ${doorman_config="%%PREFIX%%/etc/doormand/doormand.cf"}
|
||||
|
||||
command=%%PREFIX%%/sbin/doormand
|
||||
pidfile=/var/run/doormand.pid
|
||||
command_args="-p $pidfile -f $doorman_config"
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"</programlisting>
|
||||
|
||||
</sect1>
|
||||
|
|
Loading…
Reference in a new issue