Age | Commit message (Collapse) | Author | |
---|---|---|---|
2011-07-31 | Improve processing of service directories and conf.d files | William Hubbs | |
symbolic links should not be followed in an attempt to work out the name of the service we are running. Also, @sysconfdir@/conf.d should be tried as a backup directory for configuration files. I would like to thank Robin Johnson for his input on this change. X-Gentoo-Bug: 350910 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=350910 | |||
2011-07-26 | runscript: rename saveDir back to save to fix compile error | William Hubbs | |
2011-07-20 | rename save and save2 for clarity | William Hubbs | |
The names saveDir and saveLnk seem to better define how these variables are used. | |||
2011-07-05 | Don't write into optarg, this also fixes a compiler warning. | Christian Ruppert | |
2011-06-29 | drop useless "All rights reserved" notice | Mike Frysinger | |
Signed-off-by: Mike Frysinger <vapier@gentoo.org> | |||
2011-05-23 | Fix dirname calls in runscript | Christian Ruppert | |
runscript will try to get the dir and basename of a file/link in case it contains at least one slash. This patch gives a temporary copy of the path to the dirname() function since dirname() can modify its argument. | |||
2011-01-17 | Clean up all trailing whitespace in src/. | Robin H. Johnson | |
2011-01-12 | bug 351160: make openrc exit codes LSB compliant | Eray Aslan | |
* 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) | |||
2010-12-03 | Avoid 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-09 | restore init.d pause option | Mike Frysinger | |
2010-03-17 | Fix two leaks. | Roy Marples | |
2010-01-08 | random spelling fixes | Mike Frysinger | |
Signed-off-by: Mike Frysinger <vapier@gentoo.org> | |||
2009-09-04 | Allow init scripts to show their dependencies easier | Roy Marples | |
2009-07-01 | We 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-01 | Warn about going inactive correctly. | Roy Marples | |
2009-05-23 | Move non compiled libraries from /lib/rc to /libexec/rc | Roy 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-17 | If already started or stopped, abort. | Roy Marples | |
2009-05-05 | Fix compile on NetBSD and FreeBSD | Roy Marples | |
2009-05-01 | Add (c) to Copyright | Roy Marples | |
2009-04-30 | Add -Z, --dry-run option to show which services we would start/stop | Roy Marples | |
without actually doing so. Fixes #151. | |||
2009-04-30 | Avoid more gcc warning about not checking return values ... | Roy Marples | |
2009-04-30 | Fix parens | Juan RP | |
2009-04-28 | Don't start services when their need dependency is broken | Roy Marples | |
2009-04-24 | Cast to int | Roy Marples | |
2009-04-24 | Describe interval units | Roy Marples | |
2009-04-23 | Improve style for KNF | Roy Marples | |
2009-04-23 | Improve 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-18 | Don't leak the lock fd. | Roy Marples | |
2009-04-18 | Fix compile on FreeBSD. | Roy Marples | |
2009-04-18 | Move status to runscript.sh so init scripts can override it, #159 | Roy Marples | |
Return 32 if crashed, #163 | |||
2009-04-17 | Using 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-13 | yes should be YES | Roy Marples | |
2009-01-12 | We now warn about clock skews | Roy 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-23 | Our error messages don't have full stops at the end | Roy Marples | |
2008-12-23 | Typo. | Roy Marples | |
2008-12-23 | Disallow hotplug to run during sysinit, but allow elsewhere. Fixes #131. | Roy Marples | |
2008-12-11 | Warn about stopping sysinit services, thanks to Matthias Schwarzott. Fixes #126. | Roy Marples | |
2008-11-27 | Not needed. | Roy Marples | |
2008-11-27 | Switch from select to poll and improve the no prefixing of eend calls. | Roy Marples | |
2008-11-23 | Don't warn about waiting for services marked as notimeout, Gentoo #247306. | Roy Marples | |
2008-11-03 | Add 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-30 | We no longer hotplug by default. | Roy Marples | |
2008-10-10 | Remove coldplug and just have hotplug which is a list of allowed/disallowed ↵ | Roy Marples | |
services. Makes things much easier. | |||
2008-10-10 | sysinit is now a real runlevel that handles things like udev, dmesg and | Roy 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-08 | Clean 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-27 | Use flock to lock PREFIX_LOCK so that multiple processes can cleanly write ↵ | Roy Marples | |
to the same tty. | |||
2008-09-27 | Warn when waiting for a service every few seconds. | Roy Marples | |
2008-09-18 | Use the new rc_stringlist_find function. | Roy Marples | |
2008-09-18 | Clean up some compile warnings. | Roy Marples | |