summaryrefslogtreecommitdiff
path: root/src/rc
Commit message (Collapse)AuthorAge
* fix symlink targetWilliam Hubbs2011-02-07
| | | | | | The target for the symlinks in ${SBINDIR} (the same directory as the rc binary) was "rc". This is not correct; the target should be ${SBINDIR}/rc instead.
* rework pam, ncurses and termcap include filesWilliam Hubbs2011-02-04
| | | | | | | This allows error checking inside the included files instead of either including the appropriate file or a blank file. Also the blank file named .mk gets removed by this change.
* selinux: replace symlinks with wrapper scriptsChris Richards2011-01-31
| | | | | | | | This needs to be done on selinux systems so the proper context can be set for each rc applet. X-Gentoo-Bug: 351712 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=351712
* Bug #351570: Hidden function fixes: rc_conf_value.Robin H. Johnson2011-01-17
| | | | | | | | | | | Refactor rc_conf_value into librc for use in library context. Also requires moving: - rc_conf internal static - Defines: PROFILE_ENV, SYS_WHITELIST, USR_WHITELIST, RC_PATH_PREFIX moved to rc.h with new RC_ prefix added. - Defines: RC_CONF, RC_CONF_OLD moved to rc.h. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* more whitespace cleanupMike Frysinger2011-01-17
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* start-stop-daemon: use termios.h rather than sys/termios.hMike Frysinger2011-01-17
| | | | | | POSIX specifies termios.h, not sys/termios.h. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Style fix: "char *foo" not "char* foo".Robin H. Johnson2011-01-17
|
* Style fix: "while (" not "while(".Robin H. Johnson2011-01-17
|
* Style fix: "if (" not "if(".Robin H. Johnson2011-01-17
|
* Better error checking of argc for --applet call.Robin H. Johnson2011-01-17
|
* Use xstrdup for style.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>
* Add new option -F to rc-depend tool, so that we can debug user deptree files ↵Robin H. Johnson2011-01-17
| | | | easily.
* bug 351160: make openrc exit codes LSB compliantEray Aslan2011-01-12
| | | | | | * status on a stopped service now has a return code of 3 (was 1) * starting an already started service now has a return code of 0 (was 1) * stopping an already stopped service now has a return code of 0 (was 1)
* 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>
* Avoid race condition in runscript (bug #319865)Thomas Pfaff2010-12-03
| | | | | | | | | | | | | | | | Under normal conditions, runscript creates one child and waits for its termination, which is signaled by a pipe write from the SIGCHLD sighandler. When running killprocs however more than one SIGHCLD signal is generated, at least on all of my amd64 boxes running on real hardware and in vmware. When the first SIGCHLD occurs svc_exec leaves the loop and closes the pipe. Subsequent SIGCHLDs during the close can lead to a race condition and create an EBADF error in the pipe write (pipe is closed but the file handle is still != -1). We avoid this by blocking SIGHCHLD during the pipe close.
* restore init.d pause optionMike Frysinger2010-04-09
|
* Fix -s and -S.Roy Marples2010-03-26
|
* Fix two leaks.Roy Marples2010-03-17
|
* random spelling fixesMike Frysinger2010-01-08
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* start-stop-daemon can now set process IO scheduling.Roy Marples2009-12-14
|
* Fix logicRoy Marples2009-11-13
|
* Add a --warn option to just warn when reference file does not exist.Roy Marples2009-11-13
| | | | Fixes Gentoo #291894.
* Regenerate version.h if necessaryRoy Marples2009-10-16
|
* fix wait time for gentoo bug 288495William Hubbs2009-10-15
| | | | The wait time was in seconds. This patch converts it to milliseconds.
* Add new utility and init script swclock that sets the system time based onRoy Marples2009-10-13
| | | | | | | the mtime of a file. It saves the shutdown time to this file also. This is handy for systems without a working RTC chip. Based on an idea by Michael A. Smith <michael@smith-li.com>. Fixes Gentoo #272073.
* Add pkg-config support, fixes #187.Roy Marples2009-10-08
|
* Allow init scripts to show their dependencies easierRoy Marples2009-09-04
|
* Add -P to start-stop-daemon to display a . for each second elapsed.Roy Marples2009-09-04
| | | | Fixes #197.
* Really fix --signal 0Roy Marples2009-09-04
|
* Fix signed error.Roy Marples2009-09-04
|
* Allow any valid numeric signal and not just what we define.Roy Marples2009-09-01
|
* 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.
* Warn about going inactive correctly.Roy Marples2009-06-01
|
* 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.
* If already started or stopped, abort.Roy Marples2009-05-17
|
* Unset PAM environment variables if not setRoy Marples2009-05-07
|
* Fix compile on NetBSD and FreeBSDRoy Marples2009-05-05
|
* 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
|
* Add -i, --ifexists so that we can do thisRoy Marples2009-05-01
| | | | | | rc-sercice -i foo -- restart instead of this rc-service -e foo && rc-service foo -- restart
* Fix git versioningRoy Marples2009-05-01
|
* Add -Z, --dry-run option to show which services we would start/stopRoy Marples2009-04-30
| | | | | without actually doing so. Fixes #151.
* Avoid more gcc warning about not checking return values ...Roy Marples2009-04-30
|
* Brand with git version instead of svnRoy Marples2009-04-30
|
* Fix parensJuan RP2009-04-30
|
* Go back to gitRoy Marples2009-04-30
|
* Don't start services when their need dependency is brokenRoy Marples2009-04-28
|