aboutsummaryrefslogtreecommitdiff
path: root/init.d
AgeCommit message (Collapse)Author
2012-01-07net.lo: Add the ability to find the full path of a binaryWilliam Hubbs
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.
2012-01-05cgroups: turn on groups by defaultWilliam Hubbs
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.
2012-01-05really disable /var/{lock,run} migration to /runWilliam Hubbs
This needs to be disabled until we have tmpfiles.d support. The previous method did not disable it correctly.
2011-12-30Net: do not bring down interfaces during shutdownWilliam Hubbs
2011-12-29disable /run migration until we have /run in baselayoutWilliam Hubbs
2011-12-29cgroups: default the size of the tmpfs to 10 mbWilliam Hubbs
2011-12-27net: use yesno to test up_before_preupWilliam Hubbs
2011-12-26net: Add up_before_preup variable for CAN devicesRobin H. Johnson
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>
2011-12-20cgroups: always mount the tmpfs on /sys/fs/cgroupWilliam Hubbs
X-Gentoo-Bug:395079 X-Gentoo-Bug-URL:https://bugs.gentoo.org/show_bug.cgi?id=395079
2011-12-20add rc_cgroup option to allow disabling of cgroup default setupPiotr Karbowski
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
2011-12-19cgroups: remove references to the "openrc" cgroupWilliam Hubbs
Openrc will set up cgroups the way the kernel documentation recommends.
2011-12-18cgroups: mount cgroups suggested by the kernel documentationWilliam Hubbs
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.
2011-12-12Network: start interfaces after dbusWilliam Hubbs
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
2011-12-03Integrate migrate-run into bootmiscWilliam Hubbs
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
2011-11-27migrate-run: fix ln calls and migrate directories separatelyWilliam Hubbs
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
2011-11-26Make migrate-run more verboseWilliam Hubbs
2011-11-26urandom: move seed from /var/run to /var/libMike Frysinger
We want the seed to be preserved across reboots, so move it to /var/lib. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-11-26fsck: fix typo in fsck mount point supportMike Frysinger
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>
2011-11-23net.lo: fix typo in previous math commitMike Frysinger
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>
2011-11-23Migrate /var/lock and /var/run to /run for linux systemsWilliam Hubbs
2011-11-22Revert "Revert "fsck: add the ability to specify mount points to check""William Hubbs
This reverts commit 5a3599df8a15b1212857335101c9d31fb19e87e2. After review, I am bringing this back to the tree.
2011-11-20CGroups: create the openrc cgroup hierarchyWilliam Hubbs
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.
2011-11-19make shell math operations style more succulentMike Frysinger
Convert the style: var=$((${var} + 1)) to: : $(( var += 1 )) The latter is easier to read imo. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-11-18CGroups: /sys/fs/cgroups should be a tmpfsWilliam Hubbs
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.
2011-11-16Deprecate the network and staticroute scriptsWilliam Hubbs
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.
2011-11-06Revert "fsck: add the ability to specify mount points to check"William Hubbs
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.
2011-11-06fsck: add the ability to specify mount points to checkRobin H. Johnson
2011-10-29Use pattern rules instead of suffix rulesWilliam Hubbs
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.
2011-10-26Add support for automounting configfs and cgroupfsAlexey Shvetsov
Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
2011-10-20further clean up OS differences in makefilesMike Frysinger
No need for if() logic. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-10-18consolodate MakefilesWilliam Hubbs
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
2011-10-16fix random typosMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-10-02Small style changeWilliam Hubbs
2011-09-27Make dmesg log optionalChristian Ruppert
Reported-by: Patrick <gentoo@feystorm.net> X-Gentoo-Bug: 384485 X-Gentoo-Bug-URL: https://bugs.gentoo.org/384485
2011-09-21Add a new helper functions for _{flatten,get}_arrayChristian Ruppert
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
2011-09-18procfs: simplify the binfmt_misc mount checkMike Frysinger
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>
2011-09-18procfs: drop nfsd mountingMike Frysinger
The dedicated nfs init.d script takes care of mounting this when necessary, and we want it there since mounting it isn't terribly useful if you can't actually start up the nfs daemons (which the nfs-utils package provides). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-09-18procfs: load config files from binfmt.d into /proc/sys/fs/binfmt_misc/registerMike Frysinger
This is a KISS version. Let's see where we go from here in terms of complexity. Maybe nowhere! X-Gentoo-Bug: 382723 X-Gentoo-Bug-URL: https://bugs.gentoo.org/382723 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-09-11Fix regex pattern for umounts during shutdownChristian Ruppert
This patch fixes the regex pattern for /lib -> /lib(32|64)? as well as the pattern for RC_SVCDIR if it contains /lib(32|64)?/. This fixes bug 381783. X-Gentoo-Bug: 381783 X-Gentoo-Bug-URL: https://bugs.gentoo.org/381783
2011-09-02Mtab: fix typoWilliam Hubbs
Reported-By: Helmuth Schmelzer <des-colo@hotmail.com> X-Gentoo-Bug: 381503 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=381503
2011-08-20Do not print "null" or "noop" when configuring an interfaceYun Zheng Hu
Note by william hubbs: I modified the patch to compare "null" and "noop" with $1 instead of ${config}. Reported-by: Yun Zheng Hu <hu@fox-it.com> X-Gentoo-Bug: 379577 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=379577
2011-08-20Do not update mtab if it is a symbolic linkWilliam Hubbs
Reported-by: <junkmailnotread@yahoo.com> X-Gentoo-Bug: 370037 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=370037
2011-07-28swclock: select a default reference fileWilliam Hubbs
If $RC_SVCDIR/shutdowntime does not exist, we need a default reference file. It is safe to use @PREFIX@/sbin/runscript for this purpose. Reported-By: Robin H. Johnson <robbat2@gentoo.org> X-Gentoo-Bug: 376249 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=376249
2011-07-26mtab: fix test for a link to a location in /procWilliam Hubbs
/etc/mtab can be a link to a file in /proc. If it is, we should not attempt to update /etc/mtab. The original test used "! -w" as part of the test. This does not work since everything is writeable by root. Thanks to Robin Johnson for the suggestion of using readlink -f and the regular expression. Reported-By: junkmailnotread@yahoo.com X-Gentoo-Bug: 370037 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=370037
2011-07-23Mtab: fix typoWilliam Hubbs
2011-07-14Add warnings for the use of bash arraysWilliam Hubbs
Currently, we allow the use of bash arrays for some configuration settings. This is undocumented, so I want to remove the support from openrc. The first phase of this removal will be this commit which adds warnings to encourage people not to use bash arrays. X-Gentoo-Bug: 374875 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=374875
2011-07-07save and restore IFS correctlyKirill Elagin
X-Gentoo-Bug: 371141 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=371141
2011-07-05fix issue with extra_net_fs_listWilliam Hubbs
The extra_net_fs_list variable was not being included as it should have been for the net file systems because it was being expanded before it was set by the user. X-Gentoo-Bug: 374133 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=374133
2011-07-04eat trailing whitespaceMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-07-04Bug 373808: init.d/modules skipped certain variable combinationsRobin H. Johnson
The version iteration code missed certain combinations: KV=1.2.3.4 skips: 1.2.3, 1 KV=1.2.3 skips: 1 Simplify the code to use a loop and build the list of versions directly instead of unique variables per version component. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>