diff options
author | Peter Pentchev <roam@FreeBSD.org> | 2008-01-24 00:36:42 +0000 |
---|---|---|
committer | Peter Pentchev <roam@FreeBSD.org> | 2008-01-24 00:36:42 +0000 |
commit | 27c6a7f09c59d28352b60d5a65c773e7cd21c82e (patch) | |
tree | 7ceedddcbbac0e4604ee4f843522fba2043febc4 /security/stunnel/files/stunnel.in | |
parent | 171db2b8a032ff278461d5ce770d47565700a2bc (diff) |
Notes
Diffstat (limited to 'security/stunnel/files/stunnel.in')
-rw-r--r-- | security/stunnel/files/stunnel.in | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/security/stunnel/files/stunnel.in b/security/stunnel/files/stunnel.in index 3ab996452b19..5732436c6ec3 100644 --- a/security/stunnel/files/stunnel.in +++ b/security/stunnel/files/stunnel.in @@ -12,27 +12,27 @@ # Add some of the following variables to /etc/rc.conf to configure stunnel: # stunnel_enable (bool): Set to "NO" by default. # Set it to "YES" to enable stunnel. -# stunnel_config (str): Default "!!PREFIX!!/etc/stunnel/stunnel.conf" +# stunnel_config (str): Default "%%ETCDIR%%/stunnel.conf" # Set it to the full path to the config file # that stunnel will use during the automated # start-up. -# stunnel_pidfile (str): Default "!!PREFIX!!/var/stunnel/stunnel.pid" +# stunnel_pidfile (str): Default "%%PREFIX%%/var/stunnel/stunnel.pid" # Set it to the value of 'pid' in # the stunnel.conf file. # -. !!RC_SUBR!! +. %%RC_SUBR%% name="stunnel" rcvar=`set_rcvar` -stunnel_config="!!PREFIX!!/etc/stunnel/${name}.conf" -stunnel_pidfile="/var/run/${name}.pid" -command="!!PREFIX!!/bin/stunnel" - -[ -z "$stunnel_enable" ] && stunnel_enable="NO" load_rc_config $name +: ${stunnel_enable="NO"} +: ${stunnel_config="%%ETCDIR%%/${name}.conf"} +: ${stunnel_pidfile="/var/run/${name}.pid"} + +command="%%PREFIX%%/bin/stunnel" command_args=${stunnel_config} pidfile=${stunnel_pidfile} |