aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-02-20Revert "Revert "swap: go back to using swapon for Linux systems""William Hubbs
This reverts commit 06d67017850e106f14d8948003027612253b143a. After researching this further, we do need this commit. The other issue is a bug in fstabinfo which will also need to be fixed.
2012-02-20update ignore patternsWilliam Hubbs
2012-02-20Revert "swap: go back to using swapon for Linux systems"William Hubbs
This reverts commit 297720787f914ca34f2d04c66980c18c57700865. robbat2 tells me there is a better way to fix this.
2012-02-20swap: go back to using swapon for Linux systemsWilliam Hubbs
There are several reasons for going back to this: - fstabinfo doesn't work with labels in fstab - when a device is passed to swapon individually, the swap priority from fstab is not honored. - We also add the -e option to only activate available swap devices. reported-by: Duncan <1i5t5.duncan@cox.net> X-Gentoo-Bug: 405021 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=405021
2012-02-19Clarify the documentation about the reboot runlevelWilliam Hubbs
The reboot runlevel does exist, but it gets remapped to the shutdown runlevel internally.
2012-02-19Document the RC_REBOOT variableWilliam Hubbs
2012-02-18net: add deprecation warning for old style net dependency variablesWilliam Hubbs
2012-02-18net: fix documentation for interface dependenciesWilliam Hubbs
The network script had a separate case for handling network interface dependencies using variables of the form rc_before/after/use/need/provide_ifname. This is unnecessary since openrc already supports rc_net_ifname_need/use/before/after/provide. This commit updates the documentation to use this more generally supported form.
2012-02-18Fix meaning of "provide net"William Hubbs
I was informed that "provide net" should mean that there is network communication outside the local computer. In this case, the loopback interface can't "provide net", but there needs to be a way for other processes to know that the loopback interface is active. To this end, this commit makes the loopback "provide lo" and all other interfaces "provide net".
2012-02-18hwclock: set the hardware clock on shutdownWilliam Hubbs
Previously, the default on linux systems was to not set the hardware clock to match the system clock during shutdown. This changes that default to be consistent with *bsd and swclock.
2012-02-17hwclock: Clarify documentationWilliam Hubbs
The clock_hctosys and clock_systohc settings really do not have anything to do with running an ntp daemon, so remove that reference from the documentation. Reported-by: Milos Ivanovic <milosivanovic@orcon.net.nz> X-Gentoo-Bug: 401433 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=401433
2012-02-16Enable binfmt_misc for openvz containersWilliam Hubbs
Reported-by: Daniel Robbins <drobbins@funtoo.org> X-Gentoo-Bug: 401875 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=401875
2012-02-16Replace hard coded reference to /etc with @SYSCONFDIR@William Hubbs
I found a reference to "/etc" in the procfs script. This changes that reference to @SYSCONFDIR@.
2012-02-13Allow localmount to run in openvz containersWilliam Hubbs
Reported-By: Daniel Robbins <drobbins@funtoo.org> X-Gentoo-Bug: 401063 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=401063
2012-02-13Revert "Remove rc_parallel from rc.conf"William Hubbs
This reverts commit 695f3886fb2d255e64387ce780be3c1cbc170fa9. Reported-by: Pacho Ramos <pacho@gentoo.org> X-Gentoo-Bug: 400741 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=400741
2012-02-13Swap: fix redirectWilliam Hubbs
Swap should redirect stdout and stderr from swapon to null and not just stderr.
2012-02-13Improve swap handlingWilliam Hubbs
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-12Merge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/openrcChristian Ruppert
2012-02-12Fix some more warningsChristian Ruppert
2012-02-12Fix typo in swap scriptWilliam Hubbs
2012-02-12Use size_t instead of intChristian Ruppert
2012-02-11Remove unused/useless function single_user()Christian Ruppert
2012-02-10termencoding: change "need root" to "use root"William Hubbs
This allows root to be removed from the boot runlevel which is needed sometimes when the root fs is mounted read-only. Reported-By: Maxim Kammerer <mk@dee.su> X-Gentoo-Bug: 400921 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=400921
2012-02-10root.in: split a long line for readabilityWilliam Hubbs
2012-02-10sysctl.d: fix READMEWilliam Hubbs
Fix some typos in this file and clarify the documentation more.
2012-02-09Fix early consolefont/termencoding usage vs rc_sysRobin H. Johnson
During early boot, the keywords were not being checked for consolefont/termencoding and they were running anyway when they should not be. X-Gentoo-Bug: 400549 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=400549 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-02-09sysctl.d: Include a README file for /etc/sysctl.d/Robin H. Johnson
Our sysctl script has read from /etc/sysctl.d/ but the directory was not created by default, and we didn't document it. X-Gentoo-Bug: 398189 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=398189 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-02-09Whitespace.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-02-09oldnet: ip6rd supportSalah Coronya
X-Gentoo-Bug: 392223 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=392223 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-02-09Remount already mounted filesystems.Piotr Karbowski
This was modified by William Hubbs to use the checkpath helper and to improve readability. Signed-off-by: William Hubbs <williamh@gentoo.org> Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> (tested with genkernel /usr mount changes);
2012-01-31fstabinfo: add --remount optionWilliam Hubbs
This adds a --remount/-R option to fstabinfo. This new option works like --mount, but it adds the necessary options to remount a file system that is already mounted. Reported-by: Piotr Karbowski <piotr.karbowski@gmail.com> X-Gentoo-Bug: 401573 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=401573
2012-01-30Complain about loading /etc/conf.d/rcWilliam Hubbs
Openrc was quietly loading this file if it existed and this was causing some issues, so now openrc loads the file and complains about it. Hopefully the warning message will convince everyone to remove this file and migrate the settings to @SYSCONFDIR@/rc.conf where they belong.
2012-01-30Revert "Net: do not bring down interfaces during shutdown"William Hubbs
This reverts commit 6d5a2d5f9e5c1e3cb4c24dfc0c2ed2c118d8e64c. There are interfaces, such as adsl and ppp interfaces which need to be brought down. Also, the WOL setting is a good case for bringingdown interfaces.
2012-01-29cgroups: only create the cgroup when the service is being startedWilliam Hubbs
2012-01-28Use "checkpath -W" instead of dir_writable()Christian Ruppert
2012-01-28Check if /sys/fs/cgroup/openrc is writableChristian Ruppert
2012-01-28Do not unlink the temp. log during shutdownChristian Ruppert
Also ignore errors in case of EROFS (Read-Only file systems) Reported-by: Maxim Kammerer X-Gentoo-Bug: 401115 X-Gentoo-Bug-URL: https://bugs.gentoo.org/401115
2012-01-28Do not loop flock()Christian Ruppert
There's no need to loop until flock was successfully as flock() would simply block till a previous lock has been released. There's more to do to fix it properly, see my comments in the patch. Reported-by: James Le Cuirot <chewi@aura-online.co.uk> X-Gentoo-Bug: 360013 X-Gentoo-Bug-URL: https://bugs.gentoo.org/360013
2012-01-27Cgroups: do not update mtab when mounting control groupsWilliam Hubbs
This is based on a patch submitted by the reporter; however, there was another mount command which needed -n as well so it was added to the patch. Reported-by: Ben Kohler <bkohler@gmail.com> X-Gentoo-Bug: 400967 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=400967
2012-01-26cgroups: add all services to the openrc cgroupWilliam Hubbs
This is a modified version of a patch originally submitted by Patrick Lauer <patrick@gentoo.org>.
2012-01-26Add -W/--writable function to checkpathChristian Ruppert
Checkpath -W will use access(3p) to determine whether or not a path is writable. This is more accurate than test(1p) because it also takes into account whether or not the filesystem is mounted read-only. Modified by William Hubbs to add the man page update.
2012-01-26WhitespaceChristian Ruppert
2012-01-26Add is_writable() function to check whether a path is writable or notChristian Ruppert
2012-01-26cgroups: make sure /sys/fs/cgroup is a mount pointWilliam Hubbs
We need to make sure this directory is a mount point before we add the control groups. Reported-by: Andrej Filipcic <andrej.filipcic@ijs.si> X-Gentoo-Bug: 400903 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=400903
2012-01-26bootmisc: stop deleting /etc/nologinMike Frysinger
Baselayout-1.x used to have a DELAYLOGIN option where it would setup /etc/nologin automatically and then delete it later on. OpenRC did not keep that feature, and during the rewrites, ended up just punting it all the time. This isn't what we intended, so drop the rm. X-Gentoo-Bug: 400837 X-Gentoo-Bug-URL: https://bugs.gentoo.org/400837 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-01-25This new release will be 0.9.9 with idl0r's changesRobin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-01-25net/bonding: Fix which interface IPs get added to.Robin H. Johnson
The previous bonding change of ensuring interfaces were down to add slave interfaces, but it clobbered the IFACE variable, because it was being passed to a bash function rather than a command. X-Gentoo-Bug: 400613 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=400613 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-01-24Disable parallel startup in interactive modeChristian Ruppert
2012-01-24Override rc.conf options onlyChristian Ruppert
2012-01-23Cgroups: activate the openrc control group release agentWilliam Hubbs