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:
Alexander Leidinger committed 2026-08-30 19:42:55 +02:00
1 parent 6155e17019
commit 21e53eeaff
2 files changed
+4 -1

No files matched your search

+2
View File
@@ -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
View File
@@ -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