summaryrefslogtreecommitdiff
path: root/src/rc/rc.c
Commit message (Collapse)AuthorAge
* 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
* 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: allow switching runlevels without stopping servicesWilliam Hubbs2013-04-28
| | | | | | | | | | | OpenRC, by default, stops all services that are not listed in a runlevel when rc is used to switch runlevels. This adds a -n/--no-stop command line option to rc which tells it to skip stopping the services which are not in the runlevel. Reported-by: gentoo@thoth.purplefrog.com X-Gentoo-Bug: 372585 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=372585
* rc: add usage messageAndrew Gregory2013-02-25
| | | | Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
* librc: Do not output error messages from within the library.William Hubbs2012-03-26
| | | | | | | | | This fixes a compile issue. Also, it is cleaner to have the client output error messages as opposed to having the library do this. Reported-by: Ewoud Kohl van Wijngaarden <gentoo@kohlvanwijngaarden.nl> X-Gentoo-Bug: 409743 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=409743
* rc: remove calls to rc_sys_v2 and rc_sys_v1William Hubbs2012-02-20
| | | | | These separate calls are no longer needed since we do not warn about falling back to automatic detection.
* remove the warning about falling back to autodetectionJory A. Pratt2012-02-20
|
* Use size_t instead of intChristian Ruppert2012-02-12
|
* Remove unused/useless function single_user()Christian Ruppert2012-02-11
|
* Disable parallel startup in interactive modeChristian Ruppert2012-01-24
|
* Rename proc_getent to rc_proc_getent and make it globalChristian Ruppert2012-01-15
|
* Code style fixesChristian 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=".
* drop useless "All rights reserved" noticeMike Frysinger2011-06-29
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rc: delete now unused local "i" variableMike Frysinger2011-05-28
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* new implementation of applet optionWilliam Hubbs2011-02-16
| | | | | | | | | | This reworks the implementation of the --applet option so that it is processed in run_applets() and does not require two calls to the getopts_long() function. It is based on code by Robin Johnson and Chris Richards. X-Gentoo-Bug: 351712 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=351712
* make version option commonWilliam Hubbs2011-02-14
| | | | | This reworks the code for the version option so that it is part of the parser loop and is a common option to all applets.
* Style fix: "if (" not "if(".Robin H. Johnson2011-01-17
|
* Better error checking of argc for --applet call.Robin H. Johnson2011-01-17
|
* Clean up all trailing whitespace in src/.Robin H. Johnson2011-01-17
|
* Bug #351712: Implement --applet selection mode for SELinux wrappers.Robin H. Johnson2011-01-17
| | | | | | | In addition to detecting what multicall applet we want via argv[0], provide an explicit override mode with a --applet initial argument. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Implement explicit selection of subsystem types.Robin H. Johnson2011-01-05
| | | | | | | | | | | - Fixes bugs #347583, #349389, both of which were triggered by cgroups being detected as the LXC subsystem type. - Makes it much easier to select "prefix" type. - "rc -S" will now print a warning if you have not configured rc_sys in /etc/rc.conf - All other semantics of rc_sys are unchanged in this patch. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Fix -s and -S.Roy Marples2010-03-26
|
* We should use -feature instead of nofeature.Roy Marples2009-07-01
| | | | | | This matches the ifconfig and Gentoo USE flag syntax and is hopefully easier to read. Fixes #178.
* Use rc_getline instead of assuming a fixed kernel cmdline length.Roy Marples2009-06-21
| | | | | | This is now requires as COMMAND_LINE_SIZE isn't exposed by kernel headers anymore. Fixes #177.
* Move non compiled libraries from /lib/rc to /libexec/rcRoy Marples2009-05-23
| | | | | | | | OpenRC version is now stored as plaintext in /libexec/rc/version Plugins (cursplash, splashutils) will have to be re-compiled to pickup the new directories. State data needs to be moved from /lib/rc/init.d to /libexec/rc/init.d as well.
* Add runlevel stacking, #88Roy Marples2009-05-02
| | | | | This implementation has the limitation that you cannot have a stacked runlevel and service of the same name in a runlevel.
* Add (c) to CopyrightRoy Marples2009-05-01
|
* Avoid more gcc warning about not checking return values ...Roy Marples2009-04-30
|
* Add the noshutdown keyword to special case the shutdown.Roy Marples2009-04-27
|
* Fix the nstop keyword.Roy Marples2009-04-27
|
* Add the nostop keyword so that we don't stop the network init script by default.Roy Marples2009-04-26
|
* Use /bin/bash or user shell in /etc/passwd if none set before /bin/sh.Roy Marples2009-04-26
|
* Don't drop to sulogin by default, but make this configurable.Roy Marples2009-04-24
|
* Allow rc to start (optionally stop) crashed services, #120Roy Marples2009-04-24
|
* Improve style for KNFRoy Marples2009-04-23
|
* noinit makes more sense than noinitdRoy Marples2009-01-18
|
* yes should be YESRoy Marples2009-01-13
|
* Don't allow SYSVINIT parameters through anymore.Roy Marples2009-01-13
| | | | | | RC_REBOOT is now yes when rebooting. Document the special reboot runlevel.
* We now warn about clock skewsRoy Marples2009-01-12
| | | | | | rc-update -u will force a regen of the dep tree rc_newer_than and rc_olderthan now take another two parameters for newest/oldest file and mtime
* Fix compile, #136Roy Marples2009-01-02
|
* Allow rc_runlevel/softlevel to set runlevel from kernel commandline.openrc-0.4.1Roy Marples2008-12-21
|
* Store interactive mode after sysinit, #128 thanks to Matthias Schwarzott.Roy Marples2008-12-13
|
* runlevel override works correctly again.Roy Marples2008-12-04
|
* Include hotplugged services in our start list.Roy Marples2008-12-01
|
* Ignore interupts when waiting for processes to finish. Also, style fixes.Roy Marples2008-11-28
|
* We start off in sysinit correctly.Roy Marples2008-11-04
|
* No need for NULL here.Roy Marples2008-11-03
|
* We shouldn't run halt.sh anymore.Roy Marples2008-11-03
|