diff options
Diffstat (limited to 'misc/yaunc/files/yaunc.in')
-rw-r--r-- | misc/yaunc/files/yaunc.in | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/misc/yaunc/files/yaunc.in b/misc/yaunc/files/yaunc.in new file mode 100644 index 000000000000..4997f5037d1b --- /dev/null +++ b/misc/yaunc/files/yaunc.in @@ -0,0 +1,29 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: yaunc +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# yaunc_enable (bool): Set to NO by default. +# Set it to YES to enable yaunc. +# yaunc_config (path): Set to %%PREFIX%%/etc/yaunc.conf +# by default. + +. /etc/rc.subr + +name="yaunc" +rcvar=yaunc_enable + +command=%%PREFIX%%/bin/${name} + +load_rc_config $name + +: ${yaunc_enable="NO"} +: ${yaunc_config="%%PREFIX%%/etc/yaunc.conf"} + +command_args="-f $yaunc_config" + +run_rc_command "$1" |