NetBSD/etc/rc.d/systemfs

28 lines
509 B
Plaintext
Raw Normal View History

2000-03-10 14:53:23 +03:00
#!/bin/sh
#
# $NetBSD: systemfs,v 1.2 2000/05/13 08:45:09 lukem Exp $
2000-03-10 14:53:23 +03:00
#
# PROVIDE: systemfs
# REQUIRE: network mountcritremote
. /etc/rc.subr
name="systemfs"
start_cmd="systemfs_start"
stop_cmd=":"
systemfs_start()
{
# clean up left-over files.
# this could include the cleanup of lock files and /var/run, etc.
#
rm -f /etc/nologin /var/spool/lock/LCK.* /var/spool/uucp/STST/*
(cd /var/run && {
rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp;
})
}
load_rc_config $name
2000-03-10 14:53:23 +03:00
run_rc_command "$1"