summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* 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
* 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
|
* Don't try to write the log during sysinitChristian Ruppert2011-12-29
| | | | | | | | During the sysinit and shutdown runlevels the logfile destination may be read-only. Skip the error messages in this case. X-Gentoo-Bug: 390645 X-Gentoo-Bug-URL: https://bugs.gentoo.org/390645
* Use RC_LEVEL_SHUTDOWNChristian Ruppert2011-12-29
|
* Remove useless rc_runlevel_get() callChristian Ruppert2011-12-29
| | | | The current runlevel will be passed to rc_logger_open() already.
* Don't print error when the logfile isn't writeable during shutdownChristian Ruppert2011-12-29
| | | | | | | | | | | The logfile or its basedir may be read-only during shutdown because the directory may be umounted or read-only remounted already. In this case we simply skip this error. This is related to a comment in bug 390645 but the initial bug is not fixed through this commit. X-Gentoo-Bug: 390645 X-Gentoo-Bug-URL: https://bugs.gentoo.org/390645
* net/iproute2: POSIX sh compatability: ${x/a/b} invalidRobin H. Johnson2011-12-28
| | | | | | | The ${x/a/b} shell construct is NOT defined in the POSIX specification, it's a bash addition. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* net: document up_before_preup for BSDWilliam Hubbs2011-12-28
|
* net: clean up documentation for up_before_preupWilliam Hubbs2011-12-28
|
* net: use yesno to test up_before_preupWilliam Hubbs2011-12-27
|
* net/vlan: Fix prestop when device was hard-removed alreadyRobin H. Johnson2011-12-26
| | | | | | | | | During stop of an interface, if it has been removed already (eg hotunplug), not existing is fine. X-Gentoo-Bug: 395859 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=395859 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Fix whitespace.Robin H. Johnson2011-12-26
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* net/vlan, net/macvlan: iproute2 is required for new VLAN configurationRobin H. Johnson2011-12-26
| | | | | | | | | | | | Since commit 683a21b0a in Feburary 2011, iproute2 has been required for new VLAN configuration. MACVLAN is also impossible to configure without iproute2. However we did not check if iproute2 was actually in the modules for a given interface, so it could end up hanging or giving weird errors. Check for iproute2 before usage now. X-Gentoo-Bug: 389437 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=389437 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* net/ip6to4: Split to use pre_start and start so that other tunnel names work.Robin H. Johnson2011-12-26
| | | | | | | | | | | We need to create interfaces of custom names before we can sucessfully start them. To do this, we have to add tunnels during prestart instead of start. Split up the ip6to4 script to do this, saving the computed variables for use in start with the new service data commands. X-Gentoo-Bug: 372575 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=372575 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* 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>
* net/iproute2: Confirmed that broadcast and peer can be used together.Robin H. Johnson2011-12-21
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* net/iproute2: IPv6 cannot be used with broadcastRobin H. Johnson2011-12-21
| | | | | | | | Broadcast and IPv6 should not be used together. Do not try to set the keyword for auto-generation of the broadcast address. If the user passes a broadcast address for IPv6, throw an error. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* net/iproute2: iproute2 flag handlingRobin H. Johnson2011-12-21
| | | | | | | | | | | Several of the optional flags were not being handled correctly, they were being passed as values only, without the keyword before them. Affected keywords: anycast, label, scope, valid_lft, preferred_lft Also change the handling of keywords to a common setup now, making broadcast and peer strings the same as the above keywords. 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.
* cgroups: mount cgroups suggested by the kernel documentationWilliam Hubbs2011-12-18
| | | | | | 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.
* net: Support more variants of address family specification.Robin H. Johnson2011-12-13
| | | | | | | This includes address family specifications methods to help debug bug 358235 further. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* net/iproute2: Support routing policy for IPv6 per bug #385833Robin H. Johnson2011-12-13
| | | | | | | | | For creation of routing policy entries for IPv6, the family must be explicitly specified to 'ip'. X-Gentoo-Bug: 385833 X-Gentoo-Bug-URL: https://bugs.gentoo.org/385833 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* net/vlan: Fix mtu settingRobin H. Johnson2011-12-12
| | | | | | | | Fix minor shell typo that broke setting mtu on vlans. X-Gentoo-Bug: 392971 X-Gentoo-Bug-URL: https://bugs.gentoo.org/392971 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* net/tuntap: fix return code when tools can't be foundWilliam Hubbs2011-12-13
| | | | | This module should return failure if iproute2, openvpn or tunctl cannot be found. Before it was returning success; this fixes the issue.
* Tuntap: add iproute2 supportSalah Coronya2011-12-12
| | | | | | | | This patch was modified by William Hubbs <williamh@gentoo.org> to document the new usage in net.example. X-Gentoo-Bug: 394281 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=394281
* net/ifconfig, net/iproute2: admin/oper state check functionsRobin H. Johnson2011-12-12
| | | | | | | | | | | Provide consistent methods using iproute2/ifconfig to check operational and administrative up/down state of interfaces. This is not the same as ethtool's "Link detected" field, which is the state of the layer 2 medium. TODO: How to check operational state in BSD? Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* net/bonding: ensure slave interfaces are down before adding.Robin H. Johnson2011-12-12
| | | | | | | | | | | | The old ifenslave binary forcibly set new slave interface to down before adding into the kernel, as a way of show it's version to the kernel. We need to duplicate this so that the kernel doesn't think it's an old ifenslave version using the bonding setup interface. X-Gentoo-Bug: 391881 X-Gentoo-Bug-URL: https://bugs.gentoo.org/391881 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Thanks-to: Yun Zheng Hu <hu@fox-it.com>
* Network: start interfaces after dbusWilliam Hubbs2011-12-12
| | | | | | | | 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
* fix compile errorWilliam Hubbs2011-12-11
| | | | | | | | | A variable used in the previous commit was actually removed in another commit; that is why I didn't catch it. Reported-by: Duncan < 1i5t5.duncan@cox.net> X-Gentoo-Bug: 394369 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=394369
* Allow init scripts to be executed with a relative pathWilliam Hubbs2011-12-11
| | | | | | | | | | This was a regression that was caused by the fix for http://bugs.gentoo.org/show_bug.cgi?id=350910. I am reverting the commit that we said fixed that bug and re-opening it. Reported-By: Nathaniel <nathaniel@paust.us X-Gentoo-Bug: 392457 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=392457
* ip6to4: set correct subnet maskWilliam Hubbs2011-12-09
| | | | | | | | The correct setting for this is /48. Reported-by: MaratIK <marat.buharov@gmail.com> X-Gentoo-Bug: 392723 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=392723
* iproute2: set a default broadcast address if none is specifiedWilliam Hubbs2011-12-09
| | | | | | Reported-by: Spooky Ghost <spookyghost@blueyounder.co.uk> X-Gentoo-Bug: 392593 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=392593
* release openrc-0.9.7openrc-0.9.7William Hubbs2011-12-09
|
* Integrate migrate-run into bootmiscWilliam Hubbs2011-12-03
| | | | | | | | | 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
* migrate-run: fix ln calls and migrate directories separatelyWilliam Hubbs2011-11-27
| | | | | | | | 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
* Make migrate-run more verboseWilliam Hubbs2011-11-26
|
* Remove rc_parallel from rc.confWilliam Hubbs2011-11-26
| | | | | | | | | | | | | rc_parallel has never been considered a stable feature of openrc. To that end, I am removing the documentation for this feature from rc.conf. It is still available, but bugs against it are not considered stable blockers, and it should only be used currently by developers and users who are willing to test the feature. X-Gentoo-Bug: 391945 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=391945
* urandom: move seed from /var/run to /var/libMike Frysinger2011-11-26
| | | | | | We want the seed to be preserved across reboots, so move it to /var/lib. Signed-off-by: Mike Frysinger <vapier@gentoo.org>