aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc/rc.d/Makefile
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2022-08-28 12:48:25 +0000
committerCy Schubert <cy@FreeBSD.org>2022-09-05 13:19:42 +0000
commit27b9777c28b4e9474bdc500c28d04feec48fbb84 (patch)
tree24895067779b2335910273ec7c8d26a1844557cf /libexec/rc/rc.d/Makefile
parent9503043f6e64a92d3c35cd8aa932727685378ad0 (diff)
downloadsrc-27b9777c28b4e9474bdc500c28d04feec48fbb84.tar.gz
src-27b9777c28b4e9474bdc500c28d04feec48fbb84.zip
libexec/rc: Add var_run rc script
Users with a tmpfs /var/run will lose the directory tree state of /var/run at reboot. This rc script will optionally (by default) capture the state of the directory structure in /var/run prior to shutdown and recreate it at system boot. Alternatively a user can save the state of the /var/run directories manually using service var_run save and disable the autosaving of /var/run state using the var_run_autosave variable, for those paranoid SSD users. PR: 259585, 259699 Reported by: freebsd@walstatt-de.de, Reviewed by: philip, gbe (previous version) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D36386
Diffstat (limited to 'libexec/rc/rc.d/Makefile')
-rw-r--r--libexec/rc/rc.d/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/libexec/rc/rc.d/Makefile b/libexec/rc/rc.d/Makefile
index 3eabd17df993..e8ee61ffdff8 100644
--- a/libexec/rc/rc.d/Makefile
+++ b/libexec/rc/rc.d/Makefile
@@ -111,6 +111,7 @@ CONFS= DAEMON \
ugidfw \
${_utx} \
var \
+ var_run \
watchdogd
.if ${MK_NIS} != "no"