Lines Matching +full:- +full:- +full:quiet
3 # SPDX-License-Identifier: BSD-2-Clause
35 echo "${0##*/} [-j <jail name or id>] -e"
36 echo "${0##*/} [-j <jail name or id>] [-q] -R"
37 echo "${0##*/} [-j <jail name or id>] [-v] -l"
38 echo "${0##*/} [-j <jail name or id>] [-v] -r"
39 echo "${0##*/} [-j <jail name or id>] [-dqv] [-E var=value] <rc.d script> start|stop|etc."
40 echo "${0##*/} -h"
42 echo "-d Enable debugging of rc.d scripts"
43 echo "-j Perform actions within the named jail"
44 echo "-E n=val Set variable n to val before executing the rc.d script"
45 echo '-e Show services that are enabled'
46 echo "-R Stop and start enabled $local_startup services"
47 echo "-l List all scripts in /etc/rc.d and $local_startup"
48 echo '-r Show the results of boot time rcorder'
49 echo '-q quiet'
50 echo '-v Verbose'
62 q) QUIET=qopt ;;
69 shift $(( $OPTIND - 1 ))
71 if [ -n "${JAIL}" ]; then
73 # We do not send the -j argument into the jail.
75 [ -n "${ENABLED}" ] && args="${args} -e"
76 [ -n "${LIST}" ] && args="${args} -l"
77 [ -n "${QUIET}" ] && args="${args} -q"
78 [ -n "${RCORDER}" ] && args="${args} -r"
79 [ -n "${RESTART}" ] && args="${args} -R"
80 [ -n "${VERBOSE}" ] && args="${args} -v"
82 args="${args} -E ${var}"
87 /usr/sbin/jexec -l "${JAIL}" /usr/sbin/service $args "$@"
91 if [ -n "$DEBUG" ]; then
95 if [ -n "$RESTART" ]; then
96 skip="-s nostart"
97 if [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ]; then
98 skip="$skip -s nojail"
99 if [ `/sbin/sysctl -n security.jail.vnet` -ne 1 ]; then
100 skip="$skip -s nojailvnet"
103 [ -n "$local_startup" ] && find_local_scripts_new
107 if grep -q ^rcvar $file; then
110 if [ -n "$rcvar" ]; then
113 if [ -n "$QUIET" ]; then
121 if grep -q ^rcvar $file; then
124 if [ -n "$QUIET" ]; then
135 if [ -n "$ENABLED" -o -n "$RCORDER" ]; then
137 skip="-s nostart"
138 if [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ]; then
139 skip="$skip -s nojail"
140 if [ `/sbin/sysctl -n security.jail.vnet` -ne 1 ]; then
141 skip="$skip -s nojailvnet"
144 [ -n "$local_startup" ] && find_local_scripts_new
148 if [ -n "$ENABLED" ]; then
150 if grep -q ^rcvar $file; then
153 if [ -n "$rcvar" ]; then
162 if [ -n "$LIST" ]; then
164 [ -n "$VERBOSE" ] && echo "From ${dir}:"
165 [ -d ${dir} ] && /bin/ls -1 ${dir}
170 if [ -n "$RCORDER" ]; then
173 if [ -n "$VERBOSE" ]; then
183 if [ $# -gt 0 ]; then
193 if [ -x "$dir/$script" ]; then
194 [ -n "$VERBOSE" ] && echo "$script is located in $dir"
195 if [ -n "$QUIET" ]; then
196 …exec /usr/bin/env -i -L -/daemon HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ${VARS} "$dir/$script" …
198 …exec /usr/bin/env -i -L -/daemon HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ${VARS} "$dir/$script" …