aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc.c
AgeCommit message (Collapse)Author
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
2008-04-06Increase pidstr size to 10 chars.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-26If we have coldplugged services, but no start_services, we need to create a ↵Roy Marples
new list for start_services.
2008-03-24Fix segfault when no coldplugged services, thanks to Daijo.Roy Marples
2008-03-24Fix coldplug disabling.Roy Marples
2008-03-24Fix debug support to work without gmake and bundle -ggdb in properly.Roy Marples
2008-03-22add support for automatic gdb launching when RC_DEBUG is defined to 1 to ↵Mike Frysinger
ease bug reporting / information gathering
2008-03-21Fix some crashers in a prefix with few services.Roy Marples
2008-03-21ksoftlevel -> krunlevelRoy Marples
2008-03-19Add rc-service and update all softlevel refs to runlevel.Roy Marples
2008-03-18Get going_down and parallel the right away round.Roy Marples
2008-03-17Make rc_getline private and save it's buffer so it's sort of like getline ↵Roy Marples
from glibc.
2008-03-17We should check for NULL here.Roy Marples
2008-03-17Punt the rc_strcatpaths function and use snprintf instead to save on ↵Roy Marples
expensive malloc calls.
2008-03-17rc_find_pids now returns RC_PIDLIST instead of a NULL terminated array.Roy Marples
2008-03-16Use correct TAILQ_CONCAT macro when not defined.Roy Marples
2008-03-16Remove null terminated char ** lists in favour of RC_STRINGLIST, using TAILQ ↵Roy Marples
from queue(3). Refactor code style around the BSD KNF.
2008-03-11RC_SERVICE now points to the service file, so daemons can recall us directly.Roy Marples
2008-03-11Coldplug net devices on the BSD's as found by getifaddrs.Roy Marples
2008-03-06Test access instead of euid.Roy Marples
2008-03-05Show version similar to gcc.Roy Marples
2008-03-05Style.Roy Marples