diff options
Diffstat (limited to 'net/nylon/files')
-rw-r--r-- | net/nylon/files/nylon.sh.in | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/net/nylon/files/nylon.sh.in b/net/nylon/files/nylon.sh.in new file mode 100644 index 000000000000..251f9c90c280 --- /dev/null +++ b/net/nylon/files/nylon.sh.in @@ -0,0 +1,36 @@ +#!/bin/sh +# + +# PROVIDE: nylon +# REQUIRE: LOGIN +# KEYWORD: FreeBSD shutdown + +# +# Add the following lines to /etc/rc.conf to enable nylon: +# +#nylon_enable="YES" +# +# See nylon(1) for flags +# + +. %%RC_SUBR%% + +name=nylon +rcvar=`set_rcvar` + +command=%%PREFIX%%/bin/nylon + +stop_postcmd=stop_postcmd + +stop_postcmd() +{ + rm -f $pidfile +} + +# set defaults + +nylon_enable=${nylon_enable:-"NO"} +nylon_flags=${nylon_flags:-"-s"} + +load_rc_config $name +run_rc_command "$1" |