summaryrefslogtreecommitdiff
path: root/init.d
Commit message (Collapse)AuthorAge
* Fix typo in swap scriptWilliam Hubbs2012-02-12
|
* termencoding: change "need root" to "use root"William Hubbs2012-02-10
| | | | | | | | | 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
* root.in: split a long line for readabilityWilliam Hubbs2012-02-10
|
* Remount already mounted filesystems.Piotr Karbowski2012-02-09
| | | | | | | | | 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);
* Revert "Net: do not bring down interfaces during shutdown"William Hubbs2012-01-30
| | | | | | | 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.
* Use "checkpath -W" instead of dir_writable()Christian Ruppert2012-01-28
|
* Cgroups: do not update mtab when mounting control groupsWilliam Hubbs2012-01-27
| | | | | | | | | | 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
* cgroups: make sure /sys/fs/cgroup is a mount pointWilliam Hubbs2012-01-26
| | | | | | | | | 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
* bootmisc: stop deleting /etc/nologinMike Frysinger2012-01-26
| | | | | | | | | | | 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>
* Cgroups: activate the openrc control group release agentWilliam Hubbs2012-01-23
|
* Cgroups: create openrc control groupWilliam Hubbs2012-01-23
| | | | | This creates the "openrc" control group with no subsystems attached. The next step will be to add everything openrc starts to this group.
* Make checks for writable directory posix compliantWilliam Hubbs2012-01-22
| | | | | | Reported-by: Maxim Kammerer <mk@de.su> X-Gentoo-Bug: 398931 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=398931
* net: allow parameters to a single address configRobin H. Johnson2012-01-13
| | | | | | | | | | | | | | | | In the case of a single line of configuration, where the address has parameters, the parameters were being treated as seperate addresses. Eg: config_eth0="4321:0:1:2:3:4:567:89ab/64 nodad home preferred_lft 0" Also document usage of parameters in the net example, and note that multiple addresses on a single line cannot be mixed with parameters. Newlines are required to seperate the addresses. X-Gentoo-Bug: 398827 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=398827 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* net: net.lo, lots of scriptsRobin H. Johnson2012-01-08
| | | | | | | | | | | The program function in depend blocks is now able to search paths by itself. If passed multiple arguments or multiple calls, at least one of the arguments passed must be a program or a shell builtin (eg ip built into busybox). If a qualified path is specified, only that path will be checked, otherwise it will be checked as a builtin, then $PATH will be checked for the named binary (via type). Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* net.lo: Add the ability to find the full path of a binaryWilliam Hubbs2012-01-07
| | | | | | | | | Some of the networking tools, such as iproute2, can be stored in one of several locations. This function gives us a standard way to find these tools. I would like to thankRobin Johnson <robbat2@gentoo.org> for his input on this function.
* cgroups: turn on groups by defaultWilliam Hubbs2012-01-05
| | | | | | The control groups we create are the ones recommended by the linux kernel, so this should be on most of the time if cgroups are enabled in the kernel.
* really disable /var/{lock,run} migration to /runWilliam Hubbs2012-01-05
| | | | | This needs to be disabled until we have tmpfiles.d support. The previous method did not disable it correctly.
* Net: do not bring down interfaces during shutdownWilliam Hubbs2011-12-30
|
* disable /run migration until we have /run in baselayoutWilliam Hubbs2011-12-29
|
* cgroups: default the size of the tmpfs to 10 mbWilliam Hubbs2011-12-29
|
* net: use yesno to test up_before_preupWilliam Hubbs2011-12-27
|
* net: Add up_before_preup variable for CAN devicesRobin H. Johnson2011-12-26
| | | | | | | | | | | | Historically, we have tried to up interfaces before running preup, so that the kernel setups up the device and makes things like ethtool work (some hardware cannot be correct probed until then). However this ends up breaking other hardware, so a variable has been introduced to allow the up prior to preup to be disabled: up_before_preup_IFVAR=no X-Gentoo-Bug: 389475 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=389475 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* cgroups: always mount the tmpfs on /sys/fs/cgroupWilliam Hubbs2011-12-20
| | | | | X-Gentoo-Bug:395079 X-Gentoo-Bug-URL:https://bugs.gentoo.org/show_bug.cgi?id=395079
* add rc_cgroup option to allow disabling of cgroup default setupPiotr Karbowski2011-12-20
| | | | | | | | | | | Currently, cgroups are still in development, so we are not setting them up by default. However, this default will be changed in the future. This commit message and patch were updated by William Hubbs <williamh@gentoo.org>. X-Gentoo-Bug: 395079 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=395079
* cgroups: remove references to the "openrc" cgroupWilliam Hubbs2011-12-19
| | | | Openrc will set up cgroups the way the kernel documentation recommends.
* cgroups: mount cgroups suggested by the kernel documentationWilliam Hubbs2011-12-18
| | | | | | The linux kernel documentation suggests mounting a separate cgroup hierarchy for each subsystem you want to control/monitor. This changes the cgroups mounting code to do this.
* Network: start interfaces after dbusWilliam Hubbs2011-12-12
| | | | | | | | This is needed to allow auto-connect at boot. Reported-by: David J Cozatt <ygdrasil@comcast.net> X-Gentoo-Bug: 390955 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=390955
* Integrate migrate-run into bootmiscWilliam Hubbs2011-12-03
| | | | | | | | | The migrate-run service was hanging when parallel startup was enabled because of its dependencies. This integrates the logic for this service into bootmisc, which will avoid the issues with parallel startup. I would like to thank Robin H. Johnson <robbat2@gentoo.org> for his input on this patch
* migrate-run: fix ln calls and migrate directories separatelyWilliam Hubbs2011-11-27
| | | | | | | | This is based on a patch submitted by AlphatPC@gmail.com. Reported-by: AlphatPC@gmail.com X-Gentoo-Bug: 391945 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=391945
* Make migrate-run more verboseWilliam Hubbs2011-11-26
|
* urandom: move seed from /var/run to /var/libMike Frysinger2011-11-26
| | | | | | We want the seed to be preserved across reboots, so move it to /var/lib. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* fsck: fix typo in fsck mount point supportMike Frysinger2011-11-26
| | | | | | | | | Previous commit e3b39a677b535bc2 missed adding a "[" to one of the tests. Reported-by: Torsten Veller <tove@gentoo.org> x-Gentoo-Bug: 391941 x-Gentoo-Bug-URL: http://bugs.gentoo.org/391941 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* net.lo: fix typo in previous math commitMike Frysinger2011-11-23
| | | | | | | x-Gentoo-Bug: 391671 x-Gentoo-Bug-URL: http://bugs.gentoo.org/391671 Reported-by: Duncan <1i5t5.duncan@cox.net> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Migrate /var/lock and /var/run to /run for linux systemsWilliam Hubbs2011-11-23
|
* Revert "Revert "fsck: add the ability to specify mount points to check""William Hubbs2011-11-22
| | | | | | This reverts commit 5a3599df8a15b1212857335101c9d31fb19e87e2. After review, I am bringing this back to the tree.
* CGroups: create the openrc cgroup hierarchyWilliam Hubbs2011-11-20
| | | | | | Openrc will create a cgroup hierarchy called openrc which will have all services it starts and all subsystems attached to it. If you need other groups/hierarchies, please use libcgroup.
* make shell math operations style more succulentMike Frysinger2011-11-19
| | | | | | | | | | | Convert the style: var=$((${var} + 1)) to: : $(( var += 1 )) The latter is easier to read imo. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* CGroups: /sys/fs/cgroups should be a tmpfsWilliam Hubbs2011-11-18
| | | | | | | | | | | The kernel documentation states that a cgroup file system should not be mounted here, but a tmpfs. This also means that we should not create a group for each process, but we should allow the user to specify which group a process should be assigned to. The rc_cgroup variable will be used for this purpose. For more information, see /usr/src/linux/Documentation/cgroups/cgroups.txt.
* Deprecate the network and staticroute scriptsWilliam Hubbs2011-11-16
| | | | | | These scripts are not supported, and they have several major design issues such as not being able to stop, start or allow a dependency on a single interface.
* Revert "fsck: add the ability to specify mount points to check"William Hubbs2011-11-06
| | | | | | | This reverts commit e3b39a677b535bc2676a939519906f6b2dbce6f4. I misunderstood and thought this was ready to go in the tree, but it was on a remote branch only for a review.
* fsck: add the ability to specify mount points to checkRobin H. Johnson2011-11-06
|
* Use pattern rules instead of suffix rulesWilliam Hubbs2011-10-29
| | | | | | Rework the makefiles to use pattern rules instead of suffix rules. This is the preferred way to write implicit rules according to the gnu make manual.
* Add support for automounting configfs and cgroupfsAlexey Shvetsov2011-10-26
| | | | Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
* further clean up OS differences in makefilesMike Frysinger2011-10-20
| | | | | | No need for if() logic. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* consolodate MakefilesWilliam Hubbs2011-10-18
| | | | | | | | | | The tree contained many operating system specific Makefiles which were being included in other Makefiles. This commit removes those and adds the code to the makefiles which included them using make's conditional processing. X-Gentoo-Bug: 387441 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=387441
* fix random typosMike Frysinger2011-10-16
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Small style changeWilliam Hubbs2011-10-02
|
* Make dmesg log optionalChristian Ruppert2011-09-27
| | | | | | Reported-by: Patrick <gentoo@feystorm.net> X-Gentoo-Bug: 384485 X-Gentoo-Bug-URL: https://bugs.gentoo.org/384485
* Add a new helper functions for _{flatten,get}_arrayChristian Ruppert2011-09-21
| | | | | | | | | | | | | | | A new helper function (_array_helper) since both, the _flatten_array and _get_array function share partially the same code. We also reduce multiple whitespace to a single space, remove leading newlines as well as skipping "empty" lines. This makes the data returned by _{flatten,get}_array much nicer than before. It also fixes bug 366677 where net-tools having trouble with the whitespace mentioned above. iproute2 was not affected. Reported-by: Andrew Maltsev <am@ejelta.com> X-Gentoo-Bug: 366677 X-Gentoo-Bug-URL: https://bugs.gentoo.org/366677
* procfs: simplify the binfmt_misc mount checkMike Frysinger2011-09-18
| | | | | | | Replace the `mountinfo` exec with a file test of the register file which we rely on later anyways. Signed-off-by: Mike Frysinger <vapier@gentoo.org>