Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151137685
D44097.id135074.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D44097.id135074.diff
View Options
diff --git a/libexec/rc/rc.conf b/libexec/rc/rc.conf
--- a/libexec/rc/rc.conf
+++ b/libexec/rc/rc.conf
@@ -61,8 +61,8 @@
mfs_type="auto" # "md", "tmpfs", "auto" to prefer tmpfs with md as fallback
populate_var="AUTO" # Set to YES to always (re)populate /var, NO to never
cleanvar_enable="YES" # Clean the /var directory
-var_run_enable="NO" # Save/restore /var/run structure at shutdown/reboot
-var_run_autosave="NO" # Only restore /var/run structure at shutdown/reboot
+var_run_enable="YES" # Save/restore /var/run structure at shutdown/reboot
+var_run_autosave="YES" # Only restore /var/run structure at shutdown/reboot
# The user is expected to issue service var_run save to
# manually save the /var/run mtree
var_run_mtree="/var/db/mtree/BSD.var-run.mtree"
diff --git a/libexec/rc/rc.d/var_run b/libexec/rc/rc.d/var_run
--- a/libexec/rc/rc.d/var_run
+++ b/libexec/rc/rc.d/var_run
@@ -17,11 +17,6 @@
load_rc_config $name
-# Set defaults
-: ${var_run_enable:="NO"}
-: ${var_run_mtree:="/var/db/mtree/BSD.var-run.mtree"}
-: ${var_run_autosave:="YES"}
-
_var_run_load() {
test -f ${var_run_mtree} &&
mtree -U -i -q -f ${var_run_mtree} -p /var/run > /dev/null
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 7, 8:31 AM (10 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30987303
Default Alt Text
D44097.id135074.diff (1 KB)
Attached To
Mode
D44097: rc: Set var_run_enable to enable by default
Attached
Detach File
Event Timeline
Log In to Comment