aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-12-03Avoid race condition in runscript (bug #319865)Thomas Pfaff
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.
2010-04-09restore init.d pause optionMike Frysinger
2010-04-09restore old e* func outputMike Frysinger
Gentoo has always used the sytle: * moo ... [ ok ] Latest openrc now does: * moo... [ok] Realistically, 4 spaces out of 80 on reduced terminals doesn't make any sort of realistic difference and it's been just fine for the last 10 years, so keep the default behavior.
2010-03-26Fix -s and -S.Roy Marples
2010-03-17Fix two leaks.Roy Marples
2010-01-08random spelling fixesMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-12-14start-stop-daemon can now set process IO scheduling.Roy Marples
2009-11-14Only allow one service to be provided by default.Roy Marples
Fixes Gentoo #293139.
2009-11-13Fix logicRoy Marples
2009-11-13Add a --warn option to just warn when reference file does not exist.Roy Marples
Fixes Gentoo #291894.
2009-11-04Add support for Linux Containers, fixes #202.Roy Marples
Patch by bug reporter.
2009-10-16Regenerate version.h if necessaryRoy Marples
2009-10-15fix wait time for gentoo bug 288495William Hubbs
The wait time was in seconds. This patch converts it to milliseconds.
2009-10-13Add new utility and init script swclock that sets the system time based onRoy Marples
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.
2009-10-08Add pkg-config support, fixes #187.Roy Marples
2009-09-21Don't quote optsRoy Marples
2009-09-04Allow init scripts to show their dependencies easierRoy Marples
2009-09-04Add -P to start-stop-daemon to display a . for each second elapsed.Roy Marples
Fixes #197.
2009-09-04Really fix --signal 0Roy Marples
2009-09-04Fix signed error.Roy Marples
2009-09-01Allow any valid numeric signal and not just what we define.Roy Marples
2009-07-20Don't provide ourself, fixes #190Roy Marples
2009-07-01We should use -feature instead of nofeature.Roy Marples
This matches the ifconfig and Gentoo USE flag syntax and is hopefully easier to read. Fixes #178.
2009-06-21Use rc_getline instead of assuming a fixed kernel cmdline length.Roy Marples
This is now requires as COMMAND_LINE_SIZE isn't exposed by kernel headers anymore. Fixes #177.
2009-06-01Warn about going inactive correctly.Roy Marples
2009-05-23Move non compiled libraries from /lib/rc to /libexec/rcRoy Marples
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.
2009-05-17If already started or stopped, abort.Roy Marples
2009-05-07Unset PAM environment variables if not setRoy Marples
2009-05-05Fix compile on NetBSDRoy Marples
2009-05-05Fix compile on NetBSD and FreeBSDRoy Marples
2009-05-02Add runlevel stacking, #88Roy Marples
This implementation has the limitation that you cannot have a stacked runlevel and service of the same name in a runlevel.
2009-05-02Ignore test resultsRoy Marples
2009-05-01Add (c) to CopyrightRoy Marples
2009-05-01Add -i, --ifexists so that we can do thisRoy Marples
rc-sercice -i foo -- restart instead of this rc-service -e foo && rc-service foo -- restart
2009-05-01Fix git versioningRoy Marples
2009-04-30Add -Z, --dry-run option to show which services we would start/stopRoy Marples
without actually doing so. Fixes #151.
2009-04-30Avoid more gcc warning about not checking return values ...Roy Marples
2009-04-30Brand with git version instead of svnRoy Marples
2009-04-30Fix parensJuan RP
2009-04-30Go back to gitRoy Marples
2009-04-28Don't start services when their need dependency is brokenRoy Marples
2009-04-27Add the noshutdown keyword to special case the shutdown.Roy Marples
2009-04-27Fix the nstop keyword.Roy Marples
2009-04-26Add the nostop keyword so that we don't stop the network init script by default.Roy Marples
2009-04-26Use /bin/bash or user shell in /etc/passwd if none set before /bin/sh.Roy Marples
2009-04-25Use kill for the pid check as it's fast.Roy Marples
2009-04-24Don't drop to sulogin by default, but make this configurable.Roy Marples
2009-04-24We should match the full variable name.Roy Marples
2009-04-24Add missing show levels switch.Roy Marples
2009-04-24rc-status -c now lists services that have crashed.Roy Marples
It returns 0 if there are crashed services, otherwise 1. This it easy to restart crashed services automatically. More for #120.