diff options
author | cperciva <cperciva@FreeBSD.org> | 2013-10-22 16:09:44 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2013-10-22 16:09:44 +0000 |
commit | 287864b1a7317cf7568bd46c04a058a453c45509 (patch) | |
tree | 91ea014ef91994cbe7cb0862b12717ed1bcf1d4b /share/man/man8 | |
parent | bb4ca793bf3f1958efd8b4cf91d06caf0ff9feab (diff) | |
download | FreeBSD-src-287864b1a7317cf7568bd46c04a058a453c45509.zip FreeBSD-src-287864b1a7317cf7568bd46c04a058a453c45509.tar.gz |
MFC r256775,r256776:
Add support for "first boot" rc.d scripts.
Document this new functionality in rc.conf(5) and rc(8).
Bump __FreeBSD_version so that ports can make use of this.
Approved by: re (gjb)
Diffstat (limited to 'share/man/man8')
-rw-r--r-- | share/man/man8/rc.8 | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/share/man/man8/rc.8 b/share/man/man8/rc.8 index 32d0ade..cfeb0e6 100644 --- a/share/man/man8/rc.8 +++ b/share/man/man8/rc.8 @@ -35,7 +35,7 @@ .\" @(#)rc.8 8.2 (Berkeley) 12/11/93 .\" $FreeBSD$ .\" -.Dd September 23, 2013 +.Dd October 19, 2013 .Dt RC 8 .Os .Sh NAME @@ -129,6 +129,13 @@ and add (only allow vnet-enabled jails) to the list of KEYWORDS to skip in .Xr rcorder 8 . .It +If the file +.Va ${firstboot_sentinel} +does not exist, add +.Dq Li firstboot +to the list of KEYWORDS to skip in +.Xr rcorder 8 . +.It Invoke .Xr rcorder 8 to order the files in @@ -156,6 +163,11 @@ Stop processing when the script that is the value of the .Va $early_late_divider has been run. .It +Check again to see if the file +.Va ${firstboot_sentinel} +exists (in case it is located on a newly mounted file system) +and adjust the list of KEYWORDs to skip appropriately. +.It Re-run .Xr rcorder 8 , this time including the scripts in the @@ -164,6 +176,13 @@ directories. Ignore everything up to the .Va $early_late_divider , then start executing the scripts as described above. +.It +If the file +.Va ${firstboot_sentinel} +exists, delete it. +If the file +.Va ${firstboot_sentinel}-reboot +also exists (because it was created by a script), then delete it and reboot. .El .Ss Operation of Nm rc.shutdown .Bl -enum |