aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-11-30functions.sh: yesno: (mostly) fix eval logicMike Frysinger
We need to quote the expansion. X-Gentoo-Bug: 475032 X-Gentoo-Bug: https://bugs.gentoo.org/475032 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-10-31Fix the service-level rc_verbose settingWilliam Hubbs
This commit fixes the rc_verbose setting so that it is honored if it is set for an individual service. Thanks to whissi@whissi.de for the original patch; this one is slightly modified to be more posix. X-Gentoo-Bug: 489358 X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=489358
2013-10-30Begin port to GNU/kFreeBSDSteven Chamberlain
This is just a minimal port to get Debian up and running; the rest will be done later.
2013-10-28bootmisc: do not run clean_run on VSERVER systemsWilliam Hubbs
X-Gentoo-Bug: 489370 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=489370
2013-10-28loopback: do not run in a prefix or vserverWilliam Hubbs
X-Gentoo-Bug: 489370 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=489370
2013-10-21librc: do not allow "." and ".." as runlevel namesWilliam Hubbs
The rc_runlevel_exists function was attempting to treat "." and ".." as valid runlevels; however, this should not be allowed. X-Gentoo-Bug: 488710 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=488710
2013-10-21Revert "Make einfo routines private"William Hubbs
This reverts commit de88aff0a839844526ae262f8961ec4372fed238. I was advised that splashutils links to libeinfo, so we do have a consumer for this library.
2013-10-18remove redundant sync callsWilliam Hubbs
The localmount and mount-ro scripts were flushing pending disk writes by calling sync twice in succession. This is no longer necessary; see the bug report and blog post for reasons we were still doing this. Reported-by: Patrick Lauer <patrick@gentoo.org> X-Gentoo-Bug: 487382 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=487382
2013-10-14Add uml keyword to fsck service.Alexander V Vershilov
Fix relevant an issue mentioned by Toralf Förster. X-Gentoo-Bug: 481096. X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=481096
2013-10-12convert flock() messages to verbose warningsWilliam Hubbs
Convert these messages to warnings that are only displayed if EINFO_VERBOSE is set to yes in the environment. This is based on a suggestion from Patrick Lauer <patrick@gentoo.org>. X-Gentoo-Bug: 487588 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=487588
2013-10-08netmount: add -lxc keywordWilliam Hubbs
Netmount should not run on lxc, thanks to Mark van Dijk <funtoo@internecto.net>.
2013-10-06start-stop-daemon: fix do_stop callsWilliam Hubbs
Several calls to do_stop were forcing the test parameter to be true, which was causing extra output to the terminal, such as: * Would send signal 0 to pid xxxxx This should only happen if the --test command line option was used.
2013-10-04FL-786: localmount: support filesystem mounting on openvzDaniel Robbins
2013-10-04librc: fix a read off-by-one bugNatanael Copa
We should first check if we are within bounds and then read rather than the opposite. This makes valgrind happy. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
2013-10-04librc: fix off-by-one bugNatanael Copa
We need allocate space for both the added leading '-' and the trailing '\0'. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
2013-09-30start-stop-daemon: fix eerorr calls in get_pidWilliam Hubbs
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.
2013-09-27fix cgroup_cleanup functionWilliam Hubbs
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
2013-09-26Make einfo routines privateWilliam Hubbs
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.
2013-09-24start-stop-daemon: remove the verbose variableWilliam Hubbs
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.
2013-09-23start-stop-daemon: remove the quiet variableWilliam Hubbs
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
2013-09-23rc: add service to ignore patternsWilliam Hubbs
2013-09-23style fixesWilliam Hubbs
2013-09-20Fix stacked runlevel supportAlexander V Vershilov
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
2013-09-03rc: add support for suppressing error messagesWilliam Hubbs
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
2013-09-03libeinfo: add separate variable to suppress eerror messagesWilliam Hubbs
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
2013-09-01init.d: update ignore patternsWilliam Hubbs
Remove net.lo* from the ignore pattern since these scripts are no longer part of OpenRC and add loopback and tmpfiles.dev.
2013-08-28libeinfo: suppress output for eerror* functionsWilliam Hubbs
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
2013-08-27Revert "Libeinfo: do not suppress ewarn() messages"William Hubbs
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
2013-08-26start-stop-daemon: remove redundant test of the quiet valueWilliam Hubbs
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.
2013-08-26start-stop-daemon: fix --quiet switchWilliam Hubbs
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
2013-08-24increment versionWilliam Hubbs
2013-08-24man/runscript.8: minor grammar fixesWilliam Hubbs
2013-08-15fix typo on runscript man pageWilliam Hubbs
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
2013-08-14typo fixWilliam Hubbs
2013-08-14add note to README about the net.* scripts moving to their own packageWilliam Hubbs
2013-08-13Remove gentoo's net.* scriptsWilliam Hubbs
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.
2013-08-13Clarify the documentation about the restart functionWilliam Hubbs
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
2013-08-06Fix Permission Denied on reading dmesg in an LXC containerFedja Beader
2013-07-31devfs: Add -lxc keywordAlexander V Vershilov
Devfs is not needed for LXC, as LXC mounts all required fs on it's own. Reported by specing.
2013-07-27tmpfiles: do not signal an error if device nodes already existDirk Sondermann
X-Gentoo-Bug: 478336 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=478336
2013-07-26swapfiles: do not try to unmount all tmpfs mountsWilliam Hubbs
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
2013-07-25Add support for DragonFly BSDGary
2013-07-25rc-cgroup: make sure the tasks file exists before adding the pidWilliam Hubbs
2013-07-25Introduce the tmpfiles.dev serviceWilliam Hubbs
This service handles setting up the tmpfiles entries for the /dev directory for Linux systems which needs to be run in the sysinit runlevel.
2013-07-25tmpfiles: add --prefix and --exclude-prefix optionsWilliam Hubbs
2013-07-23tmpfiles: make b and c commands set ownership and permissionsWilliam Hubbs
The b and c commands in tmpfiles.sh were not setting ownership and permissions for the device nodes.
2013-07-19rc-status: fix typoAlexander V Vershilov
X-Gentoo-Bug: 477318 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=477318
2013-07-16typo fixHank Leininger
X-Gentoo-Bug: 477006 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=477006
2013-07-16rc-status: fix -a to show all servicesAlexander V Vershilov
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
2013-07-05cgroups: change '$$' to 0 for consistencyWilliam Hubbs