summaryrefslogtreecommitdiff
path: root/init.d
Commit message (Collapse)AuthorAge
* 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>
* procfs: drop nfsd mountingMike Frysinger2011-09-18
| | | | | | | | | 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>
* procfs: load config files from binfmt.d into /proc/sys/fs/binfmt_misc/registerMike Frysinger2011-09-18
| | | | | | | | | 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>
* Fix regex pattern for umounts during shutdownChristian Ruppert2011-09-11
| | | | | | | | | 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
* Mtab: fix typoWilliam Hubbs2011-09-02
| | | | | | 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
* Do not print "null" or "noop" when configuring an interfaceYun Zheng Hu2011-08-20
| | | | | | | | | | | 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
* Do not update mtab if it is a symbolic linkWilliam Hubbs2011-08-20
| | | | | | Reported-by: <junkmailnotread@yahoo.com> X-Gentoo-Bug: 370037 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=370037
* swclock: select a default reference fileWilliam Hubbs2011-07-28
| | | | | | | | | 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
* mtab: fix test for a link to a location in /procWilliam Hubbs2011-07-26
| | | | | | | | | | | | | | | /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
* Mtab: fix typoWilliam Hubbs2011-07-23
|
* Add warnings for the use of bash arraysWilliam Hubbs2011-07-14
| | | | | | | | | | | 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
* save and restore IFS correctlyKirill Elagin2011-07-07
| | | | | X-Gentoo-Bug: 371141 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=371141
* fix issue with extra_net_fs_listWilliam Hubbs2011-07-05
| | | | | | | | | 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
* eat trailing whitespaceMike Frysinger2011-07-04
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Bug 373808: init.d/modules skipped certain variable combinationsRobin H. Johnson2011-07-04
| | | | | | | | | | | | | 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>
* drop useless "All rights reserved" noticeMike Frysinger2011-06-29
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* localmount: make OIFS and CIFS local in stop functionKirill Elagin2011-06-24
| | | | | X-Gentoo-Bug: 371141 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=371141
* allow options to be passed to killall5William Hubbs2011-06-23
| | | | | | | | | This allows options to be passed to killall5 by the killprocs script. This was added so that certain processes will not be killed during shutdown. x-Gentoo-Bug: 371625 x-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=371625
* sysctl: do not make unknown keys fatalMike Frysinger2011-06-18
| | | | | | | | | If unknown keys are found, currently sysctl would add all of its valid settings, but then leave itself marked as "stopped". Since this is not really what we want, make unknown keys a non-fatal error. Reported-by: Christian Ruppert <idl0r@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Don't set hostname on containers.Diego Elio Pettenò2011-06-02
| | | | | | | LXC already provides a means to set the utsname/hostname of the system, so avoid overriding the user's configuration through hostname here. Signed-off-by: Diego Elio Pettenò <flameeyes@gmail.com>
* add back the eend command in start/stop for local serviceWilliam Hubbs2011-04-21
| | | | | | | | | | This was added back due to a user request. It will always be on a line of its ownbecause I'm considering adding more verbose info messages to local that show when each service is run if local is run with the -v option. X-Gentoo-Bug: 363343 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363343
* Don't unmount /run on shutdownLars Wendler2011-04-18
| | | | | | | This is needed so that udev will stop properly on shutdown. X-Gentoo-Bug: 363971 X-Gentoo-Bug-Url: http://bugs.gentoo.org/show_bug.cgi?id=363971
* Check for /sys/module/usbcore before modprobe usbcoreAnthony G. Basile2011-04-17
| | | | | | | | | | | The use of /proc/bus/usb to mount usbfs has been deprecated, but the option is still available in the kernel. The new approach is to use /sys. We should not modprobe usbcore if either /proc/bus/usb or /sys/module/usbcore exist. X-Gentoo-Bug: 363551 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363551 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* revert changes for bug #292894William Hubbs2011-04-15
| | | | | | | | This is being done because these dependency changes caused a regression. We will need to revisit the previously mentioned bug. X-Gentoo-Bug: 363693 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363693
* termencoding should run after bootmiscSebastian Thorarensen2011-04-14
| | | | | | | | This change is necessary so that the unicode flag is not erased by bootmisc. X-Gentoo-Bug: 363611 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363611
* start loopback interface before mtabWilliam Hubbs2011-04-11
| | | | | X-Gentoo-Bug: 292894 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=292894
* remove "after bootmisc" dependency from loopback interfaceWilliam Hubbs2011-04-10
|
* bring up the loopback interface earlierWilliam Hubbs2011-04-10
| | | | | | | | | | | | | | | For most situations, the loopback interface can depend on root instead of localmount, so this patch makes that happen. It also adds comments to the net.example files explaining when a user might want to change this and giving an example. I would like to thank Robin Johnson for the original patch and suggested examples. X-Gentoo-Bug: 292894 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=292894 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* add fallback_routes support to network scriptsWilliam Hubbs2011-04-09
| | | | | | | | | | | | Add support for optional fallback_routes_* variables in the network scripts. This is similar to the fallback_route_* support in baselayout-1. However, if you do not have fallback_routes set for an interface but you do have routes set, that setting will be used, so you do not need this variable unless you want the fallback routes to be different from the primary routes. X-Gentoo-Bug: 250978 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=250978
* do not timeout waiting for bootmisc to completeWilliam Hubbs2011-04-08
| | | | | | | | It is possible for bootmisc to take longer than 60 seconds to complete and services should not time out waiting for it. X-Gentoo-Bug: 360405 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=360405
* fix typo in staticrouteWilliam Hubbs2011-04-07
| | | | | X-Gentoo-Bug: 362205 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=362205
* bootmisc: clean up tmpdir cleaningMike Frysinger2011-03-25
| | | | | | | | | | | | | | | | | | | | | | | | | | Make sure that the `cd` into the $dir actually happened. This we don't have to worry about relative paths deleting stuff it shouldn't. This step shouldn't fail, but who knows, and better to be sane than to wipe out someone's valuables. When wiping, automatically fall back to a dedicated `find` if the initial `rm` failed on us. This should help with the speed issues related to the later `find`. Have the later find only search the top level allowing `rm` to walk the directory contents. This means that -xdev no longer applies, but since the earlier `rm` wasn't doing -xdev either and no one has complained thus far, let's assume it isn't an issue. Also convert to the -exec...+ form so that we don't have to worry about long argument lists, and add -- to the `rm` that was previously missing. In practice, this shouldn't matter as we've already deleted all those files, but better safe than sorry. When cleaning, since we've already done a `cd` into the $dir, no point in prefixing all the paths with $dir too. Go with the relative loving. Signed-off-by: Mike Frysinger <vapier@gentoo.org> X-Gentoo-Bug: 359831 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=359831
* termencoding needs root to be mounted read/writeWilliam Hubbs2011-03-23
| | | | | X-Gentoo-Bug: 360215 X-Gentoo-Bug-URL: http://bugs.gentoo.org/360215
* do not delete addresses when stopping a ppp interface.Ed Wildgoose2011-03-21
| | | | | | | | This is important in situations where ppp is being used in a demand dialing setup. X-Gentoo-Bug: 359069 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=359069