aboutsummaryrefslogtreecommitdiff
path: root/src/runscript.c
AgeCommit message (Collapse)Author
2007-12-14Remove Gentoo copyright from all files that I know I have writtenRoy Marples
2007-12-14If we need to regenrate the deptree in the boot runlevel, remove it ↵Roy Marples
afterwards as the dependencies may need programs brought up by localmount. The dependencies will be regenerated correctly in the next runlevel.
2007-12-07Include time.h on linuxRoy Marples
2007-12-06Move RC_ to EINFO_ for all env vars related to einfo.Roy Marples
2007-12-05Remove rc_service_wait as runscript.c should do the waiting. ↵Roy Marples
rc_deptree_depend now returns the exact depends as listed. This is so we can support a new 'keywords' directive. We can add whatever here, like 'notimeout' which means that an init script doesn't timeout. This removes the hardcoded check on checkfs and checkroot.
2007-11-28RC_DEPEND_STRICT -> rc_depend_strictRoy Marples
2007-11-23Move /etc/conf.d/rc to /etc/rc.conf.Roy Marples
Lowercase all configurable variables, non configurations remain uppercase. Replace rc_env_bool with rc_yesno. Split localmount info procfs (Linux) and dumpon, savecore (BSD)
2007-11-22Fix execing a for argument list too longRoy Marples
2007-11-21We cannot use realpath to resolv services as some are symlinks.Roy Marples
2007-11-19Only start plugins once we have made an exclusive fileRoy Marples
2007-11-16Run the hook_out if setRoy Marples
2007-11-16If starting and started or stopping and stopped, just warn and continue. ↵Roy Marples
Fixes Gentoo bug #176452 again.
2007-11-14Show help if we don't have any args, Gentoo #198380.Roy Marples
2007-11-14Use realpath to resolve our service.Roy Marples
2007-11-14relicense as 2-clause BSD, with the kind permission of GentooRoy Marples
2007-10-31Fix starting state and clean some whitespaceRoy Marples
2007-10-26Fix the restarting of services depending on the script you're restartingRoy Marples
2007-10-22Wait for plugins to finish before moving on.Roy Marples
2007-10-15const correctnessRoy Marples
2007-10-12malloc over fatty buffersRoy Marples
2007-10-11malloc data size, not pointer sizeRoy Marples
2007-10-10Don't run the done hook twiceRoy Marples
2007-10-09We should only have one block of code that restores stateRoy Marples
2007-10-09Improve applet help a little. Also, if mountinfo as any mounts given, work ↵Roy Marples
explictly with --netdev/--nonetdev
2007-10-09Foo, should be a maskRoy Marples
2007-10-09Ensure that runscript returns 0 when service is startedRoy Marples
2007-10-09Quiet some compile time warnings on uclibcRoy Marples
2007-10-08Wups, should be xstrdupRoy Marples
2007-10-08Punt rc_ from xstrdup, xalloc, xrealloc and exists as they're not in librc ↵Roy Marples
anymore
2007-10-08Move rc_env_filter and rc_env_config out of librc and into rcRoy Marples
2007-10-05Punt rc_waitpidRoy Marples
2007-10-03rc_make_env -> rc_env_config, rc_filter_env -> rc_env_filterRoy Marples
2007-10-03rc_schedule_clear -> rc_service_schedule_clear, rc_schedule_start_service -> ↵Roy Marples
rc_service_schedule_start
2007-10-02rc_allow_plug -> rc_service_plugableRoy Marples
2007-09-29rc_wait_service -> rc_service_waitRoy Marples
2007-09-29Rationalise more functions into rc_service_Roy Marples
2007-09-29librc no longer uses libeinfo. deptree function names are now all under ↵Roy Marples
rc_deptree_
2007-09-29Ensure reading the console still works in parallel startupRoy Marples
2007-09-28Crashed is not a baselayout state as suchRoy Marples
2007-09-28rc_service_state now returns the state as a mask, which means that we can do ↵Roy Marples
things with just the one call making is more efficient.
2007-09-28enums are now fixed to specific values and are in UPPER CASE.Roy Marples
2007-09-26rc_is_env is now rc_env_bool and just works with boolean values.Roy Marples
2007-09-25unify verbose/quiet handlingMike Frysinger
2007-09-25Revert last patchRoy Marples
2007-09-25We no longer use bool in our public headers, using int instead.Roy Marples
2007-09-25Add support for describing the options in the C programs.Mike Frysinger
2007-09-25Initial doxygen documentation for rc.h and einfo.h. Plus some header clean ups.Roy Marples
2007-09-21Use a pty for prefixed output instead of pipes for stdout/stderr. ThisRoy Marples
is so that programs can get information about the controlling terminal. This change was triggered by bug #188506 where it's possible that stdin, stdout and stderr didn't point to a terminal but ended up on one via our pipes. Using a pty means that stdout and stderr always point to a terminal, but we lose the ability to tell them apart. If there is not a pty available then we use un-prefixed output as normal. This change has also introduced the need for a signal pipe so that SIGCHLD can exit the loop cleanly.
2007-09-18Don't be an ass - don't free the 2nd list. Instead just empty it.Roy Marples
2007-09-18Match the recent api change to rc_strlist_join also. We now free the 2nd ↵Roy Marples
list for ease of use.