summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Merge branch 'master' into openrc-master-embtkopenrc-embtk-0.13openrc-master-embtkAbdoulaye Walsimou Gaye2013-12-30
|\
| * Rename runscript to openrc-runHEADmasterWilliam Hubbs2013-12-29
| | | | | | | | | | | | | | | | | | | | This was requested by Debian, because the minicom software, which is available on Debian and other distros, has a binary named runscript. We are keeping a backward compatibility symlink for now, but this allows Debian or any other distro to safely remove the symlink. X-Gentoo-Bug: 494220 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=494220
* | Give ability to not install some rc directoriesAbdoulaye Walsimou Gaye2013-12-30
|/ | | | Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* add openrc binary to ignore patternsWilliam Hubbs2013-12-13
|
* runscript: clarify the message wrt schedulingWilliam Hubbs2013-12-13
| | | | | | | | The message about a service being scheduled to start was confusing to some of our users; I was told this wording is more clear. X-Gentoo-Bug: 493070 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=493070
* Rename the rc binary to openrcWilliam Hubbs2013-12-12
| | | | | | | | | | | Debian requested this rename due to the "rc" binary conflicting with the "rc" binary from the plan 9 shell. We also add a deprecation warning to the binary when it is run as rc to encourage users to switch to openrc instead. X-Gentoo-Bug: 493958 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=493958
* tmpfiles.sh: small fixesWilliam Hubbs2013-12-10
| | | | | | | Change "sort | uniq" to "sort -u". Also, change `...` to $(...). X-Gentoo-Bug: 493736 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=493736
* rc.conf: Sync list of network file systems with actual defaultsWilliam Hubbs2013-12-08
| | | | | | | | I would like to thank Aaron Ten Clay <aarontc@aarontc.com> for pointing this out; this is based on a patch he submitted. X-Gentoo-Bug: 491384 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=491384
* bootmisc.in: fix boot orderPetre Rodan2013-12-08
| | | | | | | | Bootmisc was running before the root file system was remounted rw in some situations. This fixes that issue. X-Gentoo-Bug: 493442 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=493442
* network.in: skip loopback deviceAndrew Gregory2013-12-06
| | | | | | | | | The loopback interface is supposed to be handled by the loopback service, but sys_interfaces includes it. This causes network to try to start it and means that network provides net even if lo is the only interface configured. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
* remove type commandWilliam Hubbs2013-12-02
| | | | | | The posix equivalent of the type command is "command -v", so now we use that. Thanks to Jonathan Callen <jcallen@gentoo.org> for informing me wrt the fix.
* rc-update: make "service already installed" message informationalWilliam Hubbs2013-12-01
| | | | | | This message was being sent to stderr, and it should be sent to stdout since it is informational. This change was requested by zero_chaos.
* functions.sh: yesno: (mostly) fix eval logicMike Frysinger2013-11-30
| | | | | | | | 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>
* Fix the service-level rc_verbose settingWilliam Hubbs2013-10-31
| | | | | | | | | | | 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
* Begin port to GNU/kFreeBSDSteven Chamberlain2013-10-30
| | | | | This is just a minimal port to get Debian up and running; the rest will be done later.
* bootmisc: do not run clean_run on VSERVER systemsWilliam Hubbs2013-10-28
| | | | | X-Gentoo-Bug: 489370 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=489370
* loopback: do not run in a prefix or vserverWilliam Hubbs2013-10-28
| | | | | X-Gentoo-Bug: 489370 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=489370
* librc: do not allow "." and ".." as runlevel namesWilliam Hubbs2013-10-21
| | | | | | | | 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
* Revert "Make einfo routines private"William Hubbs2013-10-21
| | | | | | This reverts commit de88aff0a839844526ae262f8961ec4372fed238. I was advised that splashutils links to libeinfo, so we do have a consumer for this library.
* remove redundant sync callsWilliam Hubbs2013-10-18
| | | | | | | | | | 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
* Add uml keyword to fsck service.Alexander V Vershilov2013-10-14
| | | | | | | 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
* convert flock() messages to verbose warningsWilliam Hubbs2013-10-12
| | | | | | | | | | 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
* netmount: add -lxc keywordWilliam Hubbs2013-10-08
| | | | Netmount should not run on lxc, thanks to Mark van Dijk <funtoo@internecto.net>.
* start-stop-daemon: fix do_stop callsWilliam Hubbs2013-10-06
| | | | | | | | | 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.
* FL-786: localmount: support filesystem mounting on openvzDaniel Robbins2013-10-04
|
* librc: fix a read off-by-one bugNatanael Copa2013-10-04
| | | | | | | | | 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>
* 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
|