openrc/init.d
William Hubbs 79d6f10926 Improve swap handling
Modify the swap script so it starts before and stops after localmount.
Also, on linux, this script should skip mounting swap on loopback.

Add a swapfiles script which runs after localmount and is designed to
activate additional swap space which could not be activated before
localmount was run. This includes loopback swap on linux and swapfiles
which are on local file systems that were not mounted when swap was
activated initially.

The start code does reactivate swap that is already active, but this is
not an error condition.

Reported-by: Giampaolo Tomassoni <giampaolo@tomassoni.biz>
X-Gentoo-Bug: 401003
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=401003
2012-02-13 08:35:29 -06:00
..
.gitignore Add a new staticroute init script so that .... static routes can be configured! 2009-10-16 08:08:22 +01:00
adjkerntz.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
bootmisc.in Use "checkpath -W" instead of dir_writable() 2012-01-28 19:32:05 +01:00
consolefont.in Use "checkpath -W" instead of dir_writable() 2012-01-28 19:32:05 +01:00
devd.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
devdb.in fix random typos 2011-10-16 19:02:21 -04:00
devfs.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
dmesg.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
dumpon.in fix random typos 2011-10-16 19:02:21 -04:00
fsck.in fsck: fix typo in fsck mount point support 2011-11-26 03:21:21 -05:00
hostid.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
hostname.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
hwclock.in make shell math operations style more succulent 2011-11-19 02:25:36 -05:00
ipfw.in fix random typos 2011-10-16 19:02:21 -04:00
keymaps.in Use "checkpath -W" instead of dir_writable() 2012-01-28 19:32:05 +01:00
killprocs.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
local.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
localmount.in Fix regex pattern for umounts during shutdown 2011-09-11 18:51:29 +02:00
Makefile Improve swap handling 2012-02-13 08:35:29 -06:00
mixer.in make shell math operations style more succulent 2011-11-19 02:25:36 -05:00
modules.in make shell math operations style more succulent 2011-11-19 02:25:36 -05:00
mount-ro.in Fix regex pattern for umounts during shutdown 2011-09-11 18:51:29 +02:00
moused.in make shell math operations style more succulent 2011-11-19 02:25:36 -05:00
mtab.in Mtab: fix typo 2011-09-02 01:56:41 -05:00
net.lo.in Revert "Net: do not bring down interfaces during shutdown" 2012-01-30 12:06:46 -06:00
netmount.in fix issue with extra_net_fs_list 2011-07-05 18:41:33 -05:00
network.in make shell math operations style more succulent 2011-11-19 02:25:36 -05:00
newsyslog.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
nscd.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
numlock.in make shell math operations style more succulent 2011-11-19 02:25:36 -05:00
pf.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
powerd.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
procfs.in procfs: simplify the binfmt_misc mount check 2011-09-18 16:01:28 -04:00
rarpd.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
rc-enabled.in make shell math operations style more succulent 2011-11-19 02:25:36 -05:00
root.in root.in: split a long line for readability 2012-02-10 09:23:13 -06:00
rpcbind.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
savecache.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
savecore.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
staticroute.in Deprecate the network and staticroute scripts 2011-11-16 13:29:52 -06:00
swap-blk.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
swap.in Improve swap handling 2012-02-13 08:35:29 -06:00
swapfiles.in Improve swap handling 2012-02-13 08:35:29 -06:00
swclock.in swclock: select a default reference file 2011-07-28 09:21:29 -05:00
syscons.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
sysctl.BSD.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
sysctl.Linux.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
sysfs.in Cgroups: do not update mtab when mounting control groups 2012-01-27 11:19:41 -06:00
syslogd.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
termencoding.in termencoding: change "need root" to "use root" 2012-02-10 09:47:12 -06:00
ttys.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
urandom.in urandom: move seed from /var/run to /var/lib 2011-11-26 13:21:54 -05:00
wscons.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00