summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2005-12-20 23:22:47 +0000
committerdougb <dougb@FreeBSD.org>2005-12-20 23:22:47 +0000
commitd2867372db4a0bb25453f61cc9fb24c604a0f8fb (patch)
treeaf95a15b1c1e0ce686a74a43f7b8e1d0ad04ddbb /etc/rc.d
parent23f40e29406831572bddf46c25a05d69067a1865 (diff)
downloadFreeBSD-src-d2867372db4a0bb25453f61cc9fb24c604a0f8fb.zip
FreeBSD-src-d2867372db4a0bb25453f61cc9fb24c604a0f8fb.tar.gz
Include a somewhat hackish way to make sure that we *always* test the
new clear_tmp_X variable when start'ing.
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-xetc/rc.d/cleartmp7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/rc.d/cleartmp b/etc/rc.d/cleartmp
index aa75a14..0df70a2 100755
--- a/etc/rc.d/cleartmp
+++ b/etc/rc.d/cleartmp
@@ -12,7 +12,6 @@
name="cleartmp"
rcvar=`set_rcvar clear_tmp`
-start_precmd="${name}_prestart"
start_cmd="${name}_start"
cleartmp_prestart()
@@ -45,4 +44,10 @@ cleartmp_start()
}
load_rc_config $name
+
+# The clear_tmp_X variable should be tested even if clear_tmp_enable is NO
+case "$1" in
+start) cleartmp_prestart ;;
+esac
+
run_rc_command "$1"
OpenPOWER on IntegriCloud