aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc.c
AgeCommit message (Collapse)Author
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-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-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-01Add (c) to CopyrightRoy Marples
2009-04-30Avoid more gcc warning about not checking return values ...Roy 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-24Don't drop to sulogin by default, but make this configurable.Roy Marples
2009-04-24Allow rc to start (optionally stop) crashed services, #120Roy Marples
2009-04-23Improve style for KNFRoy Marples
2009-01-18noinit makes more sense than noinitdRoy Marples
2009-01-13yes should be YESRoy Marples
2009-01-13Don't allow SYSVINIT parameters through anymore.Roy Marples
RC_REBOOT is now yes when rebooting. Document the special reboot runlevel.
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
2009-01-02Fix compile, #136Roy Marples
2008-12-21Allow rc_runlevel/softlevel to set runlevel from kernel commandline.Roy Marples
2008-12-13Store interactive mode after sysinit, #128 thanks to Matthias Schwarzott.Roy Marples
2008-12-04runlevel override works correctly again.Roy Marples
2008-12-01Include hotplugged services in our start list.Roy Marples
2008-11-28Ignore interupts when waiting for processes to finish. Also, style fixes.Roy Marples
2008-11-04We start off in sysinit correctly.Roy Marples
2008-11-03No need for NULL here.Roy Marples
2008-11-03We shouldn't run halt.sh anymore.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-27Style.Roy Marples
2008-10-27Remove sysvinit specific code.Roy Marples
The runlevels shutdown, reboot, sysinit and single should be called by init(8) and shutdown(8) and not manually. sysvinit users will have to add sulogin to their inittab to secure the console.
2008-10-16Include sysinit services even in single user.Roy Marples
2008-10-10Re-evaluate sys after running initsh.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-06#ifdef atexit cleanups calling free as the OS should do this for us, but ↵Roy Marples
valgrind debuggers need it.
2008-10-01Add an env var so plugins know when leaving single means the end, or start ↵Roy Marples
the default level.
2008-10-01Correcly call the right runlevel for plugins when shutting down.Roy Marples
2008-09-27When stopping services, check the newlevel if given otherwise the current ↵Roy Marples
runlevel. Fixes #100.
2008-09-18Use the new rc_stringlist_find function.Roy Marples
2008-09-18rc_nostop now lists services we should not stop on shutdown.Roy Marples
2008-09-18Clean up some compile warnings.Roy Marples
2008-05-12When testing services to stop, we should trace it. More for #79.Roy Marples
2008-05-10Only launch single user when RUNLEVEL == S, #74.Roy Marples
2008-05-06Fix the EINTR check for waitpid, Gentoo #219929.Roy Marples
2008-05-06We don't need to handle SIGWINCH in sysinit, so this should fix loading a ↵Roy Marples
framebuffer module in init.sh (Gentoo #219929. Ideally someone should tell me why this is happening and if there is a better fix.
2008-04-29Fix another leak.Roy Marples
2008-04-28Add rc_program function which uses fork and signal masking to try and ↵Roy Marples
resolve the waitpid issue, Gentoo #219179.
2008-04-26Check we have a list before running depends.Roy Marples
2008-04-17Cast to unsigned char for ctype calls.Roy Marples
2008-04-08rc_runlevel is now the preferred kernel commandline option for choosing ↵Roy Marples
default runlevel.
2008-04-06Some systems are only detectable after /proc is mounted, so re-test if unknown.Roy Marples