summaryrefslogtreecommitdiff
path: root/init.d
Commit message (Collapse)AuthorAge
* 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
* savecache should not fail if we are shutting downWilliam Hubbs2011-03-06
| | | | | | | | Since mount-ro needs to run unconditionally, we need to have savecache report that it ran successfully when the system is shutting down. X-Gentoo-Bug: 356393 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=356393
* Set unicode mode immediately at boot without consolefontSebastian Thorarensen2011-02-14
| | | | | | X-Gentoo-Bug: 354793 X-Gentoo-Bug-URL: http://bugs.gentoo.org/354793 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* local: quote script names to handle spacesMike Frysinger2011-02-14
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* hwclock: fix typo from an earlier style commitMike Frysinger2011-02-14
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Fix bug #354805Anthony G. Basile2011-02-14
|
* set timezone if RC_HCTOSYS is not setWilliam Hubbs2011-02-09
| | | | | | | | We need to set the timezone for the system clock even when we allow the kernel to set the time. X-Gentoo-Bug: 248131 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=248131
* remove unnecessary shell callsWilliam Hubbs2011-02-04
| | | | | | The main makefile, init.d/Makefile and src/librc/Makefile all contain several shell calls which can be handled as make conditionals. This switches them to conditionals.
* use immediate evaluation for shell callsWilliam Hubbs2011-01-31
| | | | | | | | This reworks the shell calls in the makefiles to use immediate evaluation and should improve parallel building. X-Gentoo-Bug: 289264 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=289264
* add option to disable setting the system clock on boot for linux systemsWilliam Hubbs2011-01-24
| | | | | | | | | | | This commit adds the clock_hctosys option which is used to skip setting the system clock on boot and can be used with a modern linux kernel which has the CONFIG_RTC_HCTOSYS option set to y. I would like to thank Dimitris Mandalidis for the report and for the patch to baselayout-1 on which my changes to openrc are based. X-Gentoo-Bug: 248131 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=248131
* change local to run programsWilliam Hubbs2011-01-20
| | | | | | | | | | | | | This changes the local service so that it will run programs located in @sysconfdir@/local.d instead of the local_start and local_stop functions from @sysconfdir@/conf.d/local. The advantage for the user is that these programs are not part of the openrc package, so the user does not have to worry about them being overwritten when openrc is upgraded. X-Gentoo-Bug: 351465 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=351465
* more whitespace cleanupMike Frysinger2011-01-17
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Bug 349571 - SELinux fixes for bootmiscChris Richards2011-01-06
| | | | | | - delete the contents of the $RC_LIBEXECDIR/console directory but not the directory itself. - direct error output from the chmod call for /tmp to /dev/null.
* bug #349443: remove -openvz keyword from sysctl serviceWilliam Hubbs2010-12-28
| | | | | Openvz supports sysctl settings which are different from the host settings, so allow the sysctl service to run for openvz systems.
* Bug #266659: we really need to allow peer, pointtopoint in parsing config lines.Robin H. Johnson2010-12-11
|
* Add "after lvm modules" as Flameeyes reports that LVM is starting too late ↵Robin H. Johnson2010-12-11
| | | | on his system in some cases.
* bug 232347: fix netmount to respect _netdev optionWilliam Hubbs2010-12-07
| | | | | | | The _netdev option in fstab on linux systems indicates that a filesystem should only be mounted if the network is available. This commit fixes netmount to support this.
* localmount should only use the -O option for linux systemsWilliam Hubbs2010-11-30
| | | | This fixes bug #347307.
* send error output from chattr command to /dev/nullWilliam Hubbs2010-11-26
| | | | This is for bug #346659.
* remove "use hostname" from sysctl for bsd systemsWilliam Hubbs2010-11-16
|
* do not mount local file systems with the _netdev option in fstabWilliam Hubbs2010-11-15
| | | | This fixes #344947.
* remove support for local.start and local.stop for bug #343709William Hubbs2010-11-10
| | | | | The openrc ebuild now migrates these files to /etc/conf.d/local, so we do not need to support them.
* add warnings about local.start and local.stop for bug #343709William Hubbs2010-11-05
| | | | | | We need to warn users that they should be using /etc/conf.d/local instead of /etc/conf.d/local.start and /etc/conf.d/local.stop. This adds those warnings.
* Allow cleaning up of pam_mktemp-based temporary directories.Diego Elio Pettenò2010-10-31
| | | | | This was blacklisted before, so the .private directories never had their content cleaned up, even if WIPE_TMP was set to yes.
* remove 'use hostname' bug 340991, Thanks DiegoJory A. Pratt2010-10-23
|
* update consolefont/keymap to include -lxc in keywordsJory A. Pratt2010-08-10
|
* allow ip to be in /sbin or /binWilliam Hubbs2010-08-09
| | | | | This makes it possible for the "ip" program in iproute2 to be installed in /sbin or /bin.
* fix typoWilliam Hubbs2010-07-10
| | | | | I made a typo while manually transferring over Roy's last commit. This fixes that typo.
* remove extra routeWilliam Hubbs2010-07-07
| | | | This was taken from Roy Marples' git repository.
* Fix tentative ip addressesRoy Marples2010-03-24
|
* Release openrc-0.6.1openrc-0.6.1Roy Marples2010-03-22
|
* random spelling fixesMike Frysinger2010-01-08
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* default route commands on Linux now require gw or via (iproute2).William Hubbs2009-12-19
|
* Support inet6 routes.Roy Marples2009-12-14
|
* Allow "dev eth0" to work for a default route.Roy Marples2009-12-14
|