aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/swap1
Commit message (Collapse)AuthorAgeFilesLines
* - Add vnode-backed swap space specification support. This is enabled whenHiroki Sato2013-06-271-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | device names "md" or "md[0-9]*" and a "file" option are specified in /etc/fstab like this: md none swap sw,file=/swap.bin 0 0 - Add GBDE/GELI encrypted swap space specification support, which rc.d/encswap supported. The /etc/fstab lines are like the following: /dev/ada1p1.bde none swap sw 0 0 /dev/ada1p2.eli none swap sw 0 0 .eli devices accepts aalgo, ealgo, keylen, and sectorsize as options. swapctl(8) can understand an encrypted device in the command line like this: # swapctl -a /dev/ada2p1.bde - "-L" flag is added to support "late" option to defer swapon until rc.d/mountlate runs. - rc.d script change: rc.d/encswap -> removed rc.d/addswap -> just display a warning message if $swapfile is defined rc.d/swap1 -> renamed to rc.d/swap rc.d/swaplate -> newly added to support "late" option These changes alleviate a race condition between device creation/removal and swapon/swapoff. MFC after: 1 week Reviewed by: wblock (manual page) Notes: svn path=/head/; revision=252310
* Backout previous commit due to PEBKACGuido van Rooij2009-03-111-1/+1
| | | | Notes: svn path=/head/; revision=189694
* When swap resides on a mirror and it is not stopped, the mirrorGuido van Rooij2009-03-101-1/+1
| | | | | | | | is degraded upon the next reboot and will have to be rebuild. Thus call swapoff when rebooting (read: when stopping swap1) Notes: svn path=/head/; revision=189624
* Add a -q flag to swapon(8) to suppress informational messages. Use it inMike Makonnen2008-06-231-1/+1
| | | | | | | | rc.d. Note: errors are not affected by this flag. Notes: svn path=/head/; revision=179966
* 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
* Stop method for swap1 script was introduced, because gmirror needed it.Pawel Jakub Dawidek2004-11-051-1/+1
| | | | | | | | Now gmirror use shutdown hooks to mark mirrors as clean on shutdown, so this is not needed anymore. Notes: svn path=/head/; revision=137255
* 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
* Teach swap1 script how to remove added swap devices on system shutdown.Pawel Jakub Dawidek2004-09-171-21/+1
| | | | | | | | | Without this change, if one had a swap-on-mirror configuration, gmirror will rebuild mirror component(s) on boot, because they are dirty (they were open on shutdown). Notes: svn path=/head/; revision=135389
* 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-14/+2
| | | | | | | | | | | | 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
* 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-3/+30
| | | | | | | | | | | 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