Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | |||||
fi | fi | ||||
# If we receive a SIGALRM, re-source /etc/rc.conf; this allows rc.d | # If we receive a SIGALRM, re-source /etc/rc.conf; this allows rc.d | ||||
# scripts to perform "boot-time configuration" including enabling and | # scripts to perform "boot-time configuration" including enabling and | ||||
# disabling rc.d scripts which appear later in the boot order. | # disabling rc.d scripts which appear later in the boot order. | ||||
trap "_rc_conf_loaded=false; load_rc_config" ALRM | trap "_rc_conf_loaded=false; load_rc_config" ALRM | ||||
skip="-s nostart" | skip="-s nostart" | ||||
if [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ]; then | if check_jail jailed; then | ||||
skip="$skip -s nojail" | skip="$skip -s nojail" | ||||
if [ `/sbin/sysctl -n security.jail.vnet` -ne 1 ]; then | if ! check_jail vnet; then | ||||
skip="$skip -s nojailvnet" | skip="$skip -s nojailvnet" | ||||
fi | fi | ||||
fi | fi | ||||
# If the firstboot sentinel doesn't exist, we want to skip firstboot scripts. | # If the firstboot sentinel doesn't exist, we want to skip firstboot scripts. | ||||
if ! [ -e ${firstboot_sentinel} ]; then | if ! [ -e ${firstboot_sentinel} ]; then | ||||
skip_firstboot="-s firstboot" | skip_firstboot="-s firstboot" | ||||
fi | fi | ||||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |