mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
rc.subr: svcj - let svcj_all_enable enable service jails
Fix the logic for svcj_all_enable.
Fixes: 2efbd480f1 rc: add service jails framework
MFC after: 1 week
MFC to: stable/15
This commit is contained in:
2 files changed
+4
-1
No files matched your search
@@ -766,6 +766,8 @@ jail_confwarn="YES" # Prevent warning about obsolete per-jail configuration
|
||||
jail_parallel_start="NO" # Start jails in the background
|
||||
jail_list="" # Space separated list of names of jails
|
||||
jail_reverse_stop="NO" # Stop jails in reverse order
|
||||
svcj_all_enable="NO" # Run all services in a service jail unless
|
||||
# they are explicitly excluded
|
||||
|
||||
##############################################################
|
||||
### Define source_rc_confs, the mechanism used by /etc/rc.* ##
|
||||
|
||||
+2
-1
@@ -1172,8 +1172,9 @@ run_rc_command()
|
||||
if [ -z "$_svcj" ]; then
|
||||
_svcj=${svcj_all_enable}
|
||||
if [ -z "$_svcj" ]; then
|
||||
eval ${name}_svcj=NO
|
||||
_svcj=NO
|
||||
fi
|
||||
eval ${name}_svcj=$_svcj
|
||||
fi
|
||||
|
||||
# setup pid check command
|
||||
|
||||
Reference in new issue
Block a user