aboutsummaryrefslogtreecommitdiff
path: root/src/rc/runscript.c
AgeCommit message (Collapse)Author
2009-05-01Add (c) to CopyrightRoy 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-30Fix parensJuan RP
2009-04-28Don't start services when their need dependency is brokenRoy Marples
2009-04-24Cast to intRoy Marples
2009-04-24Describe interval unitsRoy Marples
2009-04-23Improve style for KNFRoy Marples
2009-04-23Improve the service timeout code and reduce the timeout to 60 seconds.Roy Marples
Don't process any dependencies when changing runlevels and called outside of RC otherwise we can deadlock.
2009-04-18Don't leak the lock fd.Roy Marples
2009-04-18Fix compile on FreeBSD.Roy Marples
2009-04-18Move status to runscript.sh so init scripts can override it, #159Roy Marples
Return 32 if crashed, #163
2009-04-17Using fifos for locking can be error prone.Roy Marples
flocks are safer, as we only use tmpfs for our lock files. I don't know how this works for inactive just yet though ...
2009-01-13yes should be YESRoy Marples
2009-01-12We now warn about clock skewsRoy Marples
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
2008-12-23Our error messages don't have full stops at the endRoy Marples
2008-12-23Typo.Roy Marples
2008-12-23Disallow hotplug to run during sysinit, but allow elsewhere. Fixes #131.Roy Marples
2008-12-11Warn about stopping sysinit services, thanks to Matthias Schwarzott. Fixes #126.Roy Marples
2008-11-27Not needed.Roy Marples
2008-11-27Switch from select to poll and improve the no prefixing of eend calls.Roy Marples
2008-11-23Don't warn about waiting for services marked as notimeout, Gentoo #247306.Roy Marples
2008-11-03Add a new shutdown runlevel, Gentoo #224537.Roy Marples
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.
2008-10-30We no longer hotplug by default.Roy Marples
2008-10-10Remove coldplug and just have hotplug which is a list of allowed/disallowed ↵Roy Marples
services. Makes things much easier.
2008-10-10sysinit is now a real runlevel that handles things like udev, dmesg andRoy Marples
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.
2008-10-08Clean up warnings regarding printf.Roy Marples
2008-10-06#ifdef atexit cleanups calling free as the OS should do this for us, but ↵Roy Marples
valgrind debuggers need it.
2008-09-27Use flock to lock PREFIX_LOCK so that multiple processes can cleanly write ↵Roy Marples
to the same tty.
2008-09-27Warn when waiting for a service every few seconds.Roy Marples
2008-09-18Use the new rc_stringlist_find function.Roy Marples
2008-09-18Clean up some compile warnings.Roy Marples
2008-06-10When we have dependant scheduled services, don't error if a need is stopped.Roy Marples
2008-05-12The real fix for the last commit is to uncomment some code - d'oh.Roy Marples
2008-05-12When stopping, stop services that need our provide as well, #79.Roy Marples
2008-05-12Check we have a deptree before using it, Gentoo #220579Roy Marples
2008-04-29Tweak the last commit and fix a valgrind error.Roy Marples
2008-04-29We need to ensure that the init script started is correct, translating ↵Roy Marples
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.
2008-04-27Don't re-start or re-stop failed services if runlevel is changing.Roy Marples
2008-04-26Check we have a list before running depends.Roy Marples
2008-04-21If we don't have permission to inspect the pidfile, don't report crashed. ↵Roy Marples
Gentoo #218028.
2008-04-08Give an error when running zap as a generic user.Roy Marples
2008-04-06Increase pidstr size to 10 chars.Roy Marples
2008-04-04Check list existance before iterating, Gentoo #216091.Roy Marples
2008-03-28Remove rc_service_start/stop from librc as they block and unmask signals. ↵Roy Marples
The application may not wish this behaviour and should fork/exec the service itself.
2008-03-26Add license blurb to a few files and append my email to my name.Roy Marples
2008-03-21Fix some crashers in a prefix with few services.Roy Marples
2008-03-21euid 0 should always be able to find pids too.Roy Marples
2008-03-21Only test crashed services if we can see pid 1.Roy Marples
2008-03-19SVCNAME -> RC_SVCNAME, but export SVCNAME still for compat.Roy Marples