From de5b97b64b8e9947f446e23c396be69ba44f01cb Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 22 Jun 2005 19:55:30 +0000 Subject: [PATCH] Document cleanvar_enable in rc.conf.5 and document the purge code in cleanvar. Submitted-by: "George Georgalis" --- etc/rc.d/cleanvar | 6 +++++- share/man/man5/rc.conf.5 | 16 +++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/etc/rc.d/cleanvar b/etc/rc.d/cleanvar index 1656605691..c9dbc6cb32 100644 --- a/etc/rc.d/cleanvar +++ b/etc/rc.d/cleanvar @@ -1,7 +1,7 @@ #!/bin/sh # # $FreeBSD: src/etc/rc.d/cleanvar,v 1.5 2003/07/14 13:02:36 mtm Exp $ -# $DragonFly: src/etc/rc.d/cleanvar,v 1.3 2004/01/26 17:21:15 rob Exp $ +# $DragonFly: src/etc/rc.d/cleanvar,v 1.4 2005/06/22 19:55:30 dillon Exp $ # # PROVIDE: cleanvar @@ -12,6 +12,8 @@ dummy_rc_command "$1" +# use recursion and shell test, because /usr/bin/find is not yet mounted +# purgedir() { local dir file @@ -42,6 +44,8 @@ purgedir() # [ "$1" != "reload" ] && rm -f /var/run/clean_var /var/spool/lock/clean_var +# purge /var/run /var/spool/lock and /var/spool/uucp/.Temp/* +# if [ -d /var/run -a ! -f /var/run/clean_var ]; then purgedir /var/run # And an initial utmp file diff --git a/share/man/man5/rc.conf.5 b/share/man/man5/rc.conf.5 index 41d1ecda94..03801457f1 100644 --- a/share/man/man5/rc.conf.5 +++ b/share/man/man5/rc.conf.5 @@ -23,7 +23,7 @@ .\" SUCH DAMAGE. .\" .\" $FreeBSD: src/share/man/man5/rc.conf.5,v 1.197 2003/07/28 13:56:00 mbr Exp $ -.\" $DragonFly: src/share/man/man5/rc.conf.5,v 1.13 2005/06/17 23:10:11 swildner Exp $ +.\" $DragonFly: src/share/man/man5/rc.conf.5,v 1.14 2005/06/22 19:55:29 dillon Exp $ .Dd March 3, 2002 .Dt RC.CONF 5 .Os @@ -2236,6 +2236,18 @@ enable SysVR4 emulation at boot time. If set to .Dq Li YES , load System V IPC primitives at boot time. +.\" ----- cleanvar_enable setting-------------------------------- +.It Va cleanvar_enable +.Pq Vt bool +Set to +.Dq Li YES +to have +.Pa /var/run , +.Pa /var/spool/lock +and +.Pa /var/spool/uucp/.Temp/* +cleaned at startup. +.\" ----- clear_tmp_enable setting------------------------------- .It Va clear_tmp_enable .Pq Vt bool Set to @@ -2243,6 +2255,7 @@ Set to to have .Pa /tmp cleaned at startup. +.\" ----- ldconfig_paths setting -------------------------------- .It Va ldconfig_paths .Pq Vt str Set to the list of shared library paths to use with @@ -2250,6 +2263,7 @@ Set to the list of shared library paths to use with NOTE: .Pa /usr/lib will always be added first, so it need not appear in this list. +.\" ----- ldconfig_paths_aout setting --------------------------- .It Va ldconfig_paths_aout .Pq Vt str Set to the list of shared library paths to use with -- 2.41.0