aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/root
Commit message (Collapse)AuthorAgeFilesLines
* Move rc startup scripts from etc/ to sbin/init/Brad Davis2018-07-281-43/+0
| | | | | | | | | | | This keeps most startup scripts as CONFS per discussion on src-committers from back during BSDCan. Approved by: will (mentor) Differential Revision: https://reviews.freebsd.org/D16466 Notes: svn path=/head/; revision=336845
* - Add descriptions to most of the rc scripts. Those are mostly taken from theirLars Engels2016-04-231-0/+1
| | | | | | | | | | | daemon's manpage and probably improved. - Consistently use "filesystem" not "file system". Approved by: bapt, brueffer Differential Revision: D452 Notes: svn path=/head/; revision=298514
* Do nextboot -D twice during boot. The first time in rc.d/root which ensures ↵Xin LI2008-03-111-1/+1
| | | | | | | | | | | | | | | | that we can remove the file as early as possible, but shut up nextboot at this moment if the operation is failed, because /boot is not necessarily a part of /; the newly added second run is placed in rc.d/mountlate after all filesystems were mounted. Discussed at: -rc@ Suggestions from: brooks, mtm MFC after: 1 month Notes: svn path=/head/; revision=177062
* Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d filesDoug Barton2007-12-081-1/+0
| | | | | | | | with theirs, so this information doesn't need to be in the live file. Having it in our CVS history is enough. Notes: svn path=/head/; revision=174438
* o Implement the stop_boot subroutine [1]. This subroutine can be used byMike Makonnen2007-05-181-1/+1
| | | | | | | | | | | | | | | | | | | | scripts in rc.d to stop rc(8) from booting into multi-user mode when a critical or severe error condition is encountered. o Modify scripts in etc/rc.d that already implemented this functionality independently. o Document it. [1] - This subroutine was implemented in FreeBSD in rc.d/fsck. I moved it to rc.subr(8). Our version differs slightly in that it takes an optional argument to stop the boot even if "autoboot" is not set. Obtained from: NetBSD MFC after: 2 weeks Notes: svn path=/head/; revision=169668
* Check if /sbin/nextboot exists before running it.Ruslan Ermilov2006-02-171-1/+3
| | | | | | | | PR: 93466 Submitted by: Mats Palmgren Notes: svn path=/head/; revision=155775
* Tell nextboot to clean up after itself.Wes Peters2006-01-181-3/+1
| | | | Notes: svn path=/head/; revision=154499
* Marius Nuennerich pointed out that nextboot(8) configured boot optionsCeri Davies2006-01-151-2/+2
| | | | | | | | | | | | | were now sticky. This script was deleting /boot/nextkernel on boot, but there is no code in the tree that creates that file since revision 1.15 of src/sbin/reboot/reboot.c. nextboot(8) creates /boot/nextboot.conf, so remove that instead. Approved by: jhb (proxy mentor) MFC after: 1 week Notes: svn path=/head/; revision=154412
* "-o rw" is invalid and undocumented mount option thatRuslan Ermilov2005-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | is only present for fstab(5) compatibility, and is otherwise ignored by mount(8) (not passed to mount_* programs, and not passed to nmount(2)). "-u -o rw" worked with an old mount(8) with mount_ufs.c because "-o rw" was stripped and simple "-u" caused an update of UFS from read-only to read-write, due to inability of mount(2) to track changes in options (MNT_RDONLY is either set or not). "-u" no longer causes the transition from RO to RW, now that mount(8) was converted to use nmount(2), so an explicit change to RW is required. Keep up with this change, and use "-uw" to mount root read-write. Notes: svn path=/head/; revision=153029
* Remove the requirement for the FreeBSD keyword as it no longerMike Makonnen2004-10-071-1/+1
| | | | | | | | | | makes any sense. Discussed with: dougb, brooks MFC after: 3 days Notes: svn path=/head/; revision=136224
* Mark scripts as not usable inside a jail by adding keyword 'nojail'.Pawel Jakub Dawidek2004-03-081-1/+1
| | | | | | | Some suggestions from: rwatson, Ruben de Groot <mail25@bzerk.org> Notes: svn path=/head/; revision=126744
* Luke Mewburn has indicated that they (NetBSD) are not interestedMike Makonnen2004-01-171-27/+18
| | | | | | | | | | | | in keeping the scripts under rc.d in sync with us. So, remove NetBSD specific stuff (which made our scripts more complicated than necessary). The NetBSD ident string will be left intact, both for history and also incase we wish to pull in future versions. Notes: svn path=/head/; revision=124622
* Luke Mewburn has indicated that they (NetBSD) are not interestedMike Makonnen2004-01-171-1/+1
| | | | | | | | | in keeping the scripts under rc.d in sync with us. So, begin removal of NetBSD specific stuff (which made our scripts more complicated than necessary), starting with the NetBSD KEYWORD. Notes: svn path=/head/; revision=124616
* If rc.d/mountcritlocal is unable to mount local filesystems,Mike Makonnen2003-12-091-2/+1
| | | | | | | | | | | | | then immediately terminate the shell (during boot this also terminates the parent rc(8) shell). This was the pre-rcNG behaviour. Also, remove an extraneous mount /. PR: conf/57659 Submitted by: yar (with modifications) Notes: svn path=/head/; revision=123341
* Wrap test case in an if statement to avoid crunching a return value.Gordon Tetlow2002-10-311-1/+3
| | | | Notes: svn path=/head/; revision=106231
* Fix style bugs:Jens Schweikhardt2002-10-121-1/+1
| | | | | | | | | | | | | * Space -> tabs conversion. * Removed blanks before semicolon in "if ... ; then". * Proper indentation of misindented lines. * Put a full stop after some comments. * Removed whitespace at end of line. Approved by: silence from gordon Notes: svn path=/head/; revision=104980
* Convert from `${CMD_OSTYPE}` to ${OSTYPE}. This saves a shell invocation onGordon Tetlow2002-09-061-1/+1
| | | | | | | OS-dependent case switches. Notes: svn path=/head/; revision=103019
* Merge in all the changes that Mike Makonnen has been maintaining for aGordon Tetlow2002-06-131-4/+32
| | | | | | | | | | | while. This is only the script pieces, the glue for the build comes next. Submitted by: Mike Makonnen <makonnen@pacbell.net> Reviewed by: silence on -current and -hackers Prodded by: rwatson Notes: svn path=/head/; revision=98184
* Import the NetBSD 1.5 RC system.David E. O'Brien2001-06-161-0/+23
Note that `rc' and `rc.shutdown' could not be imported because we already have files with those names. Notes: svn path=/vendor/NetBSD/dist/; revision=78344