summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* librc: fix off-by-one bugNatanael Copa2013-10-04
| | | | | | | We need allocate space for both the added leading '-' and the trailing '\0'. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
* start-stop-daemon: fix eerorr calls in get_pidWilliam Hubbs2013-09-30
| | | | | | The eerror calls in this function make it too verbose, so change them to ewarnv() calls instead. This means that they will only print if the --verbose option is used or EINFO_VERBOSE=yes is set in the environment.
* fix cgroup_cleanup functionWilliam Hubbs2013-09-27
| | | | | | | | The yesno test for rc_cgroup_cleanup belongs at the point where this function is called from runscript, not in the function itself. X-Gentoo-Bug: 486210 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=486210
* Make einfo routines privateWilliam Hubbs2013-09-26
| | | | | | The libeinfo library has no consumers other than OpenRC, so there is no reason for it to be maintained as a library. The einfo routines are now an object that links with the rc binary.
* start-stop-daemon: remove the verbose variableWilliam Hubbs2013-09-24
| | | | | | Along the same lines as the quiet variable, this is controlled by an environment variable for the einfo code, so we do not need a separate boolean flag.
* start-stop-daemon: remove the quiet variableWilliam Hubbs2013-09-23
| | | | | | | | The suppression of output is controlled in the e* functions themselves, so there is no need for a variable to test in start-stop-daemon. X-Gentoo-Bug: 482396 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=482396
* rc: add service to ignore patternsWilliam Hubbs2013-09-23
|
* style fixesWilliam Hubbs2013-09-23
|
* Fix stacked runlevel supportAlexander V Vershilov2013-09-20
| | | | | | | | | | | | | | | Patch was provided by Max Hacking <max.gentoo.bugzilla@hacking.co.uk> and slightly fixed by Alexander Vershilov <qnikst@gentoo.org> and William Hubbs <williamh@gentoo.org>. Fixes: 1). Rebase to newest OpenRC version. 2). Remove code style fixes. Port to currect code style. 3). Fix rc_runlevel_stack instead of introducing new function. 4). Make get_runlevel_chain a private function. X-Gentoo-Bug: 467368 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=467368
* rc: add support for suppressing error messagesWilliam Hubbs2013-09-03
| | | | | | | | Add support for suppressing error messages with --quiet specified twice on the command line. X-Gentoo-Bug: 482396 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=482396
* libeinfo: add separate variable to suppress eerror messagesWilliam Hubbs2013-09-03
| | | | | | | | | | Add an EERROR_QUIET environment variable which works like EINFO_QUIET but for the eerror functions. This will allow library consumers to choose whether to suppress eerror messages separately from einfo and ewarn messages. X-Gentoo-Bug: 482396 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=482396
* init.d: update ignore patternsWilliam Hubbs2013-09-01
| | | | | Remove net.lo* from the ignore pattern since these scripts are no longer part of OpenRC and add loopback and tmpfiles.dev.
* libeinfo: suppress output for eerror* functionsWilliam Hubbs2013-08-28
| | | | | | | | This makes the eerror* functions honor the EINFO_QUIET environment variable like the einfo* and ewarn* functions. X-Gentoo-Bug: 482396 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=482396
* Revert "Libeinfo: do not suppress ewarn() messages"William Hubbs2013-08-27
| | | | | | | | | | | | | | | This reverts commit 4ee62c7903c65557c493f51d6703264a816156cd. The previously referenced commit broke consistency because ewarnx() was respecting the EINFO_QUIET environment setting, but after this commit, ewarn() was not. Also, due to discussion on the below referenced bugs, I think we do want to suppress warnings when EINFO_QUIET=yes. X-Gentoo-Bug: 482396 X-Gentoo-Bug: 439174 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=482396 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=439174
* start-stop-daemon: remove redundant test of the quiet valueWilliam Hubbs2013-08-26
| | | | | | The einfo() function tests for the EINFO_QUIET environment variable directly, and this is the variable that is set by the --quiet flag, so there was no reason for this test to exist.
* start-stop-daemon: fix --quiet switchWilliam Hubbs2013-08-26
| | | | | | | | | | The --quiet switch wasn't really quiet, because we changed it to report errors. I am changing it back due to discussions on the listed bugs. X-Gentoo-Bug: 482396 X-Gentoo-Bug: 439174 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=482396 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=439174
* increment versionWilliam Hubbs2013-08-24
|
* man/runscript.8: minor grammar fixesWilliam Hubbs2013-08-24
|
* fix typo on runscript man pageWilliam Hubbs2013-08-15
| | | | | | | | | The example code had an invalid checkpath option (--dir instead of --directory) and a mode that does not make sense for directories (664 instead of 775). X-Gentoo-Bug: 481034 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=481034
* typo fixopenrc-0.12William Hubbs2013-08-14
|
* add note to README about the net.* scripts moving to their own packageWilliam Hubbs2013-08-14
|
* Remove gentoo's net.* scriptsWilliam Hubbs2013-08-13
| | | | | | It has been determined that it will be best for gentoo's net.* scripts to be in a separate package to allow independent development. This package will be called netifrc and maintained by Gentoo.
* Clarify the documentation about the restart functionWilliam Hubbs2013-08-13
| | | | | | | | | Restart has never been able to be overridden in OpenRc, but there is a way to make your service script behave differently when restart is being executed. X-Gentoo-Bug: 480866 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=480866
* Fix Permission Denied on reading dmesg in an LXC containerFedja Beader2013-08-06
|
* devfs: Add -lxc keywordAlexander V Vershilov2013-07-31
| | | | | Devfs is not needed for LXC, as LXC mounts all required fs on it's own. Reported by specing.
* tmpfiles: do not signal an error if device nodes already existDirk Sondermann2013-07-27
| | | | | X-Gentoo-Bug: 478336 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=478336
* swapfiles: do not try to unmount all tmpfs mountsWilliam Hubbs2013-07-26
| | | | | | | | This is handled in the swap script, so it should not be done here as well. X-Gentoo-Bug: 477534 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=477534
* Add support for DragonFly BSDGary2013-07-25
|
* rc-cgroup: make sure the tasks file exists before adding the pidWilliam Hubbs2013-07-25
|
* Introduce the tmpfiles.dev serviceWilliam Hubbs2013-07-25
| | | | | | This service handles setting up the tmpfiles entries for the /dev directory for Linux systems which needs to be run in the sysinit runlevel.
* tmpfiles: add --prefix and --exclude-prefix optionsWilliam Hubbs2013-07-25
|
* tmpfiles: make b and c commands set ownership and permissionsWilliam Hubbs2013-07-23
| | | | | The b and c commands in tmpfiles.sh were not setting ownership and permissions for the device nodes.
* rc-status: fix typoAlexander V Vershilov2013-07-19
| | | | | X-Gentoo-Bug: 477318 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=477318
* typo fixHank Leininger2013-07-16
| | | | | X-Gentoo-Bug: 477006 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=477006
* rc-status: fix -a to show all servicesAlexander V Vershilov2013-07-16
| | | | | | | | We need to unset rc_svcname so that all of the services are added to the list to display. X-Gentoo-Bug: 409787 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=409787
* cgroups: change '$$' to 0 for consistencyWilliam Hubbs2013-07-05
|
* Merge branch 'cgroup.systemd'William Hubbs2013-07-05
|\ | | | | | | | | Conflicts: sh/rc-cgroup.sh.in
| * Put a service on into a top hierarchy of each cgroupAlexander V Vershilov2013-07-01
| | | | | | | | | | | | | | | | | | | | | | This change will fix unwanted cgroup inheriting from user cgroups, and fixes issues with systemd cgroup tracking by logind. However this fix can lead to incorrect work for some user cgroup controllers - so more advanced solution, that coveres such cases will be created later. Thanks to Fabio Erculiani (lxnay) for testing and general idea.
| * Merge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/openrcRobin H. Johnson2013-06-24
| |\
* | | Merge branch 'gentoo'William Hubbs2013-06-25
|\| | | | | | | | | | | This syncs the gentoo master branch to github.
| * | efivarfs: Support EFI variable access in 3.10 kernels.Robin H. Johnson2013-06-24
| | | | | | | | | | | | | | | | | | | | | In the 3.10 kernel, EFI variables are now provided by a dedicated filesystem that needs to be mounted. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* | | cgroups: add support for systemd cgroup hierarchyWilliam Hubbs2013-06-25
| |/ |/| | | | | | | | | | | | | The systemd cgroup hierarchy support is being added so we can run logind outside of systemd. This is needed because software that was using consolekit is now migrating to logind. We do not create this hierarchy, we just add services to it if it exists.
* | efivarfs: Support EFI variable access in 3.10 kernels.Robin H. Johnson2013-06-24
| | | | | | | | | | | | | | In the 3.10 kernel, EFI variables are now provided by a dedicated filesystem that needs to be mounted. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* | Fix quoting in cgroup-release-agentAlexander V Vershilov2013-06-16
| |
* | cgroups: hide messages about non-existent processesAlexander V Vershilov2013-06-16
|/
* runscript.sh: run cgroup_cleanup automatically after stopWilliam Hubbs2013-05-25
|
* rc_cgroup.sh: fix typoAlexander V Vershilov2013-05-25
| | | | This fixes an incorrect variable assignment in cgroup_get_pids
* Fix wrong wording in STYLEAlexander Berntsen2013-05-07
|
* Document busybox applet incompatibilitiesWilliam Hubbs2013-05-07
| | | | | | Reported-by: slong@rathaus.eclipse.co.uk X-Gentoo-Bug: 468396 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=468396
* fix setfont detection in early startup on LinuxWilliam Hubbs2013-05-05
| | | | | | | Most of the time, setfont is an external command (part of the kbd package), but it can also be a builtin if busybox is being used. This corrects the test in early startup to work for both cases. I would like to thank Steve L. for pointing this out.