summaryrefslogtreecommitdiff
path: root/src/rc/runscript.c
Commit message (Collapse)AuthorAge
* 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 two leaks.Roy Marples2010-03-17
|
* random spelling fixesMike Frysinger2010-01-08
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Allow init scripts to show their dependencies easierRoy Marples2009-09-04
|
* 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.
* 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
|
* Fix compile on NetBSD and FreeBSDRoy Marples2009-05-05
|
* Add (c) to CopyrightRoy 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
|
* Fix parensJuan RP2009-04-30
|
* Don't start services when their need dependency is brokenRoy Marples2009-04-28
|
* Cast to intRoy Marples2009-04-24
|
* Describe interval unitsRoy Marples2009-04-24
|
* Improve style for KNFRoy Marples2009-04-23
|
* Improve the service timeout code and reduce the timeout to 60 seconds.Roy Marples2009-04-23
| | | | | | Don't process any dependencies when changing runlevels and called outside of RC otherwise we can deadlock.
* Don't leak the lock fd.Roy Marples2009-04-18
|
* Fix compile on FreeBSD.Roy Marples2009-04-18
|
* Move status to runscript.sh so init scripts can override it, #159Roy Marples2009-04-18
| | | | | Return 32 if crashed, #163
* Using fifos for locking can be error prone.Roy Marples2009-04-17
| | | | | | | flocks are safer, as we only use tmpfs for our lock files. I don't know how this works for inactive just yet though ...
* yes should be YESRoy Marples2009-01-13
|
* 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
* Our error messages don't have full stops at the endRoy Marples2008-12-23
|
* Typo.Roy Marples2008-12-23
|
* Disallow hotplug to run during sysinit, but allow elsewhere. Fixes #131.Roy Marples2008-12-23
|
* Warn about stopping sysinit services, thanks to Matthias Schwarzott. Fixes #126.Roy Marples2008-12-11
|
* Not needed.Roy Marples2008-11-27
|
* Switch from select to poll and improve the no prefixing of eend calls.Roy Marples2008-11-27
|
* Don't warn about waiting for services marked as notimeout, Gentoo #247306.Roy Marples2008-11-23
|
* Add a new shutdown runlevel, Gentoo #224537.Roy Marples2008-11-03
| | | | | | | Split halt.sh into halt, killprocs, romount and savecache services. The reboot runlevel is removed but mapped to shutdown. The halt script should be moved to the sysvinit package.
* We no longer hotplug by default.Roy Marples2008-10-30
|
* Remove coldplug and just have hotplug which is a list of allowed/disallowed ↵Roy Marples2008-10-10
| | | | services. Makes things much easier.
* sysinit is now a real runlevel that handles things like udev, dmesg andRoy Marples2008-10-10
| | | | | | | | | | | mounting various bits in /dev and /sys. init.sh JUST mounts /lib/rc/init.d (and /proc for Linux systems) To make development of this easier we now return an empty RC_STRINGLIST instead of a NULL for empty things. If you don't have a udev init script installed, don't reboot your box OR roll back to an older OpenRC version.
* Clean up warnings regarding printf.Roy Marples2008-10-08
|
* #ifdef atexit cleanups calling free as the OS should do this for us, but ↵Roy Marples2008-10-06
| | | | valgrind debuggers need it.
* Use flock to lock PREFIX_LOCK so that multiple processes can cleanly write ↵Roy Marples2008-09-27
| | | | to the same tty.
* Warn when waiting for a service every few seconds.Roy Marples2008-09-27
|
* Use the new rc_stringlist_find function.Roy Marples2008-09-18
|
* Clean up some compile warnings.Roy Marples2008-09-18
|
* When we have dependant scheduled services, don't error if a need is stopped.Roy Marples2008-06-10
|
* The real fix for the last commit is to uncomment some code - d'oh.Roy Marples2008-05-12
|
* When stopping, stop services that need our provide as well, #79.Roy Marples2008-05-12
|
* Check we have a deptree before using it, Gentoo #220579Roy Marples2008-05-12
|
* Tweak the last commit and fix a valgrind error.Roy Marples2008-04-29
|
* We need to ensure that the init script started is correct, translating ↵Roy Marples2008-04-29
| | | | symlinks. This has a new rule - multiplexed services must exist in the same dir as the master sript. So we need to ensuret that net.lo(0) is the real script and not a symlink itself. This fixes Gentoo #219526.
* Don't re-start or re-stop failed services if runlevel is changing.Roy Marples2008-04-27
|
* Check we have a list before running depends.Roy Marples2008-04-26
|