diff options
author | Cheng-Lung Sung <clsung@FreeBSD.org> | 2006-11-02 06:39:56 +0000 |
---|---|---|
committer | Cheng-Lung Sung <clsung@FreeBSD.org> | 2006-11-02 06:39:56 +0000 |
commit | cb49f9810745f8b8ff20682959b5ccf46d2ca11d (patch) | |
tree | c3e193daf7b446a66cfc02bf4004ea9e6e5494f0 /sysutils/sec/files | |
parent | 8733917642ad606b3086a5d15cb32f229b4aaa62 (diff) |
Notes
Diffstat (limited to 'sysutils/sec/files')
-rw-r--r-- | sysutils/sec/files/sec.in | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/sysutils/sec/files/sec.in b/sysutils/sec/files/sec.in index b8e0f84090a2..63c94d6ef5ca 100644 --- a/sysutils/sec/files/sec.in +++ b/sysutils/sec/files/sec.in @@ -1,10 +1,12 @@ #!/bin/sh # +# Sample SEC startup script for FreeBSD (contributed by Jo Rhett) +# # Add the following lines to /etc/rc.conf to enable sec: -# sec_enable (bool): Set to "NO" by default. -# Set it to "YES" to enable sec. +# sec_enable (bool): Set to "NO" by default. +# Set it to "YES" to enable sec. # -# These flags control the first (or only) instance of sec. +# These parameters control the first (or only) instance of sec # sec_flags (str): Set to "" by default. # sec_configfile (str): Set to "%%PREFIX%%/etc/sec.conf" by default. # @@ -42,9 +44,9 @@ load_rc_config "${name}" sec_checkconfig() { if [ -z $instance ] then - echo -n "Performing sanity check of sec configuration: " + echo -n "Performing sanity check of sec configuration: " else - echo -n "Performing sanity check of sec_${instance} configuration: " + echo -n "Performing sanity check of sec_${instance} configuration: " fi ${command} -debug=1 -testonly -conf=${sec_configfile} 2>&1 >/dev/null if [ $? != 0 ]; then @@ -61,17 +63,17 @@ sec_flags="-conf=${sec_configfile} -pid=${pidfile} ${sec_flags}" run_rc_command "$1" -# Are we handling multiple instance mode? +# Are we handling multiple instances? if [ ! -z "${sec_instances}" ] then - for instance in $sec_instances - do + for instance in $sec_instances + do # Iterate through all instances name="sec_${instance}" pidfile="/var/run/sec_${instance}.pid" eval required_files=\$sec_${instance}_configfile eval sec_${instance}_flags="\"-conf=\$sec_${instance}_configfile -pid=\$pidfile \$sec_${instance}_flags\"" - run_rc_command "$1" - done + run_rc_command "$1" + done fi |