summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Add is_writable() function to check whether a path is writable or notChristian Ruppert2012-01-26
|
* 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>
* This new release will be 0.9.9 with idl0r's changesRobin H. Johnson2012-01-25
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* net/bonding: Fix which interface IPs get added to.Robin H. Johnson2012-01-25
| | | | | | | | | | The previous bonding change of ensuring interfaces were down to add slave interfaces, but it clobbered the IFACE variable, because it was being passed to a bash function rather than a command. X-Gentoo-Bug: 400613 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=400613 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Disable parallel startup in interactive modeChristian Ruppert2012-01-24
|
* Override rc.conf options onlyChristian Ruppert2012-01-24
|
* 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.
* Per the systemd tmpfiles implementation, we need to watch out for umask ↵Robin H. Johnson2012-01-23
| | | | | | during initial creation of files as well as potentially changing permissions later. Also do not abort if the items exist already, per truncate rules in tmpfiles. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Ensure that when -F is passed, existing files are truncated properly.Robin H. Johnson2012-01-23
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Respin features.h usage so that we correctly test for features before we use ↵Robin H. Johnson2012-01-23
| | | | | | them. Some BSD libc implementations may have one or the other flag, but not both. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Revert "Drop include for features.h"Robin H. Johnson2012-01-23
| | | | This reverts commit 30a565f80d6056ccabadf77e347cf17067133f7e.
* Drop include for features.hWilliam Hubbs2012-01-22
| | | | | | | | | | | | | | | The following information is taken from the feature_test_macros man page: <features.h> is a Linux/glibc-specific header file. Other systems have an analogous file, but typically with a different name. This header file is automatically included by other header files as required: it is not necessary to explicitly include it in order to employ feature test macros. Reported-by: Tibor Vago <tibor.vago@gmail.com> X-Gentoo-Bug: 399635 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=399635
* 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
* WhitespaceChristian Ruppert2012-01-22
|
* small style fixWilliam Hubbs2012-01-20
|
* drop the extra --pidfile optionWilliam Hubbs2012-01-17
|
* Use the "--make-pidfile" when command_background is usedChristian Ruppert2012-01-17
| | | | | | | | | | The start-stop-daemon "--make-pidfile" option is now used by default when using command_background, this requires a pidfile to be specified. Document command_background option. Reported-by: Giampaolo Tomassoni <giampaolo@tomassoni.biz> X-Gentoo-Bug: 399165 X-Gentoo-Bug-URL: https://bugs.gentoo.org/399165
* style fixesWilliam Hubbs2012-01-16
|
* net/ethtool: Fix program call.Robin H. Johnson2012-01-16
| | | | | | | | | I missed removing a call to the old ethtool function wrapper that was made unneeded by commit d02d3af02. X-Gentoo-Bug: 399037 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=399037 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Add "ifstopped" command to runscriptChristian Ruppert2012-01-15
| | | | Signed-off-by: Christian Ruppert <idl0r@gentoo.org>
* Allow overriding of rc.conf options via kernel cmdlineChristian Ruppert2012-01-15
| | | | | | | | This adds a new function that allows us to override some specific rc.conf options via the kernel cmdline aka /proc/cmdline. This makes esp. sense in cases where a rc_parallel enabled system has boot issues. Simply disable rc_parallel by appending rc_parallel=no to your kernel cmdline.
* Rename proc_getent to rc_proc_getent and make it globalChristian Ruppert2012-01-15
|
* release openrc-0.9.8.1openrc-0.9.8.1William Hubbs2012-01-14
|
* 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/iproute2: Handle shortened argumentsRobin H. Johnson2012-01-12
| | | | | | | | | | Allow users to shorten iproute arguments to the shortest unique argument that will match a flag of iproute2. X-Gentoo-Bug: 398721 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=398721 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* rc/checkpath: tmpfiles.d backend creation codeRobin H. Johnson2012-01-09
| | | | | | | | | | This commit provides the checkpath applet with feature parity to systemd's tmpfiles.c create_item function. Very similarly to the systemd function, it does NOT do any of the cleanup work in this function. 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: make lookup of ethtool dynamicWilliam Hubbs2012-01-07
| | | | | The ethtool module checked in two places for the ethtool binary; now we look for it in the path.
* net: make lookup of iproute2 dynamicWilliam Hubbs2012-01-07
| | | | | The iproute2, macvlan and vlan modules had several possible hard coded paths for the iproute2 binary. Now we look for it in the path.
* 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.
* release openrc-0.9.8openrc-0.9.8William Hubbs2012-01-06
|
* Revert "net/ifconfig net/iproute2: support lookup ifconfig/ip dynamically"William Hubbs2012-01-06
| | | | | | | | | | | This reverts commit f583030e3cbfb1d2f30af3ebd00427e12fe66b70. The previous commit did not account for the case of not having iproute2 installed. Reported-by: Duncan <1i5t5.duncan@cox.net> X-Gentoo-Bug: 397875 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=397875
* cgroups: hide configure option to turn off cgroupsWilliam Hubbs2012-01-05
| | | | | | Turning off the default cgroups is possible, but these groups are the recommended setup from the kernel, so turning them off is highly discouraged.
* 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/ifconfig net/iproute2: support lookup ifconfig/ip dynamicallyMike Frysinger2012-01-04
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Reword the documentation for the retry option for start-stop-daemonWilliam Hubbs2011-12-30
|
* Reword retry documentation on runscript man pageWilliam Hubbs2011-12-30
|
* Fix the description of --retry in start-stop-daemon(8)Christian Ruppert2011-12-31
| | | | | | X-Gentoo-Bug: 368615 X-Gentoo-Bug-URL: https://bugs.gentoo.org/368615 Reported-by: Stuart Shelton <srcshelton@gmail.com>
* Do not exit immediately when a service has been stopped alreadyChristian Ruppert2011-12-31
| | | | | | | | | | | | | | | The old behaviour was to exit(EXIT_SUCCESS) in case the service has been stopped already, even if further commands has been passed to the init script (like zap, start). So using for example /etc/init.d/foo stop zap start would abort immediately after "stop" if the service has been stopped already. Though there may be cases were we need it to proceed with the remaining commands, zap and start in this case. This patch fixes the behaviour to continue and proceed with the remaining commands whenever necessary. X-Gentoo-Bug: 371845 X-Gentoo-Bug-URL: https://bugs.gentoo.org/371845
* Add "retry" option for the stop() templateChristian Ruppert2011-12-31
|
* Net: do not bring down interfaces during shutdownWilliam Hubbs2011-12-30
|
* Documentation updatesWilliam Hubbs2011-12-30
| | | | | | - Clarify that start_stop_daemon_args is only used when starting a daemon. - fix several typos.
* Code style fixesChristian Ruppert2011-12-30
|
* Document start_stop_daemon_argsChristian Ruppert2011-12-30
|
* Compare stricter in proc_getentChristian Ruppert2011-12-30
| | | | | | The new proc_getent compares stricter so that e.g. "ro" doesn't match root=/dev/sdaN anymore. So it has to be either "ro" or "ro=".
* net:macvlan: bring up the interfaceMarien Zwart2011-12-29
| | | | | X-Gentoo-Bug: 396429 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=396429
* net: remove _check_macvlan functionWilliam Hubbs2011-12-29
| | | | | | | | | | | This test is incorrect, and we do not need the modprobe. If macvlan is a module, it is automatically modprobed when the first macvlan link is added. Also, the /sys directory referred to in the test does not exist if macvlan is built into the kernel. Reported-by: Marien Zwart <marienz@gentoo.org> X-Gentoo-Bug: 396427 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=396427