aboutsummaryrefslogtreecommitdiff
path: root/src/runscript.c
AgeCommit message (Collapse)Author
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.
2007-09-18API change! rc_config_env is renamed to rc_make_env and takes no argument.Roy Marples
2007-09-18API change! rc_strlist_add and friends now take char *** instead ofRoy Marples
char ** and return a pointer to the item added instead of the new list head. This is so we can easily tell if the item was successfully added or not instead of iterating through the list looking for it. list = rc_strlist_add (list, item); becomes rc_strlist_add (&list, item);
2007-08-28Undocument pause action, fix --nodeps and --ifstarted, #190045.Roy Marples
2007-08-17Mark the right service as failed and only output a new line if we outputted ↵Roy Marples
anything at all for /etc/init.d/foo needsme
2007-08-17When shutting down, stop the service even if dependants failed.Roy Marples
2007-08-09Don't link to rt anymore as it makes dlopen leak - we now use nanosleeps to ↵Roy Marples
achieve the same goal (a loop + timeout). No longer put / at the end of directories, instead prefix like so RC_LIBDIR "/foo" to ensure more robust code.
2007-08-08Plug a leek for non selinux linux systemsRoy Marples
2007-08-07More pppd fixesRoy Marples
2007-07-31All our binaries are now mulicalls into rc, which makes our on disk sizeRoy Marples
a lot smaller.
2007-07-21RC_DEPEND_STRICT now controls dependency strictness.Roy Marples
If yes then we only use services in the boot and default runlevels, regradless of service state. If no then we take into account coldplugged services and the state of currently running services. Fixes #185640.