summaryrefslogtreecommitdiff
path: root/init.d
Commit message (Collapse)AuthorAge
* termencoding should not run on lxcWilliam Hubbs2012-05-27
| | | | reported-by: Alexey Shvetsov <alexxy@gentoo.org>
* do not umount /usr on linux systemsWilliam Hubbs2012-05-13
| | | | | | | | | We can't really umount /usr on linux systems because /usr is a special case if it is a separate filesystem which is handled by an initramfs. reported-by: tamiko+GENTOO@kyomu.43-1.org X-Gentoo-Bug: 415523 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=415523
* Do not try to remount /run read onlyAlexey Shvetsov2012-05-02
| | | | | On a diskless system, doing this causes the system to lock up during shutdown.
* init.d/procfs: posix compatibility fixSergei Trofimovich2012-04-16
| | | | | | | | | | | | | | | | | I've noticed in at boot: # /etc/init.d/procfs restart procfs | * WARNING: you are stopping a boot service procfs |[: 308: unexpected operator Which calls $ /bin/dash -c '[ "$RC_SYS" == "OPENVZ" ] && echo "ovz" || echo "nope"' [: 1: unexpected operator nope Fixed by using '='. X-Gentoo-Bug: 412237 x-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=412237
* network scripts need sysfs on linux systemsWilliam Hubbs2012-04-03
| | | | | Adjust the previous commit so that on linux systems the network scripts need sysfs.
* init.d/fsck: only check local file systemsWilliam Hubbs2012-03-29
| | | | | | | | | | | On linux systems, fsck was not taking into account which filesystems were local or remote. This commit adds the -t option, with an appropriate value, to the fsck call so that remote file systems are not checked. reported-by: Vladimir Berezhnoy <non7top@gmail.com> X-Gentoo-Bug: 408363 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=408363
* Add -lxc keyword to sysctl script for linux systemsWilliam Hubbs2012-03-26
| | | | | | Kernel parameters should not be set from inside a lxc guest. Reported-by: Piotr Karbowski <piotr.karbowski@gmail.com>
* localmount: Only unmount local filesystems if we are shutting downWilliam Hubbs2012-03-25
| | | | | | | | | Make the stop function in localmount only unmount file systems when the system is going down. reported-by: Alexey Prokopchuk <alexpro@homelan.lg.ua> X-Gentoo-Bug: 407167 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=407167
* sysctl: use @SYSCONFDIR@ in the scripts instead of hard coding /etcWilliam Hubbs2012-03-24
|
* Allow files in sysctl.d to override sysctl.confWilliam Hubbs2012-03-24
| | | | | | reported-by: Peter Gantner (a.k.a. nephros) <gentoo@nephros.org> X-Gentoo-Bug: 406631 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=406631
* init.d/sysctl.Linux: do not use sysctl -qDiego Elio Pettenò2012-03-24
| | | | | | | | | | | | | The -q option is not implemented by BusyBox, so instead of using that, make it so that the standard error is caught, but standard output is thrown away. Note: the ordered behaviour of redirection is part of POSIX so we should be on the safe side with this change, as first we duplicate the output descriptor to be used as stderr, then we change the output descriptor to point to NULL. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
* Remove prefix supportopenrc-0.9.9William Hubbs2012-02-21
| | | | | I spoke with the prefix team sometime back and was told that they do not have an interest in using OpenRC on prefix systems.
* Revert "Revert "swap: go back to using swapon for Linux systems""William Hubbs2012-02-20
| | | | | | 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.
* update ignore patternsWilliam Hubbs2012-02-20
|
* Revert "swap: go back to using swapon for Linux systems"William Hubbs2012-02-20
| | | | | | This reverts commit 297720787f914ca34f2d04c66980c18c57700865. robbat2 tells me there is a better way to fix this.
* swap: go back to using swapon for Linux systemsWilliam Hubbs2012-02-20
| | | | | | | | | | | | | 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
* net: add deprecation warning for old style net dependency variablesWilliam Hubbs2012-02-18
|
* Fix meaning of "provide net"William Hubbs2012-02-18
| | | | | | | | | | 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".
* hwclock: set the hardware clock on shutdownWilliam Hubbs2012-02-18
| | | | | | 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.
* hwclock: Clarify documentationWilliam Hubbs2012-02-17
| | | | | | | | | | 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
* Enable binfmt_misc for openvz containersWilliam Hubbs2012-02-16
| | | | | | Reported-by: Daniel Robbins <drobbins@funtoo.org> X-Gentoo-Bug: 401875 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=401875
* Replace hard coded reference to /etc with @SYSCONFDIR@William Hubbs2012-02-16
| | | | | I found a reference to "/etc" in the procfs script. This changes that reference to @SYSCONFDIR@.
* Allow localmount to run in openvz containersWilliam Hubbs2012-02-13
| | | | | | Reported-By: Daniel Robbins <drobbins@funtoo.org> X-Gentoo-Bug: 401063 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=401063
* Swap: fix redirectWilliam Hubbs2012-02-13
| | | | | Swap should redirect stdout and stderr from swapon to null and not just stderr.
* Improve swap handlingWilliam Hubbs2012-02-13
| | | | | | | | | | | | | | | | | | 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
* 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.