aboutsummaryrefslogtreecommitdiff
path: root/src/runscript.c
AgeCommit message (Collapse)Author
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.
2007-07-11Fix restarting services with pluginsRoy Marples
2007-07-11Punt the dodgy ebuffer code. We now force prefixing for parallel starts ↵Roy Marples
which also reduces our variable pollution.
2007-07-10Allow non root users to describeRoy Marples
2007-07-10init scripts and their extra options can now have descriptions, #184327.Roy Marples
2007-07-10Support /etc/init.d/foo ineed and friends again.Roy Marples
2007-07-06Of course, glibc does not have strlcpyRoy Marples
2007-07-06Make the prefix length dynamicRoy Marples
2007-07-04As we're running each plugin in a fork, we need to call our cleanup code so ↵Roy Marples
we don't leak memory. To this extent, we now have the global boolean rc_in_plugin and the cleanup code can act accordingly.
2007-07-04We need the full path to the service before chdir /Roy Marples
2007-07-03We still need to wait for services we need/useRoy Marples
2007-07-02Don't wait for services that were inactive, #183667 thanks to Daniel DrakeRoy Marples
2007-07-02Fix error and only let root run init commands except for status and helpRoy Marples
2007-06-26Change pwd to / for all init scripts, #181224.Roy Marples
2007-05-15/etc/conf.d/rc.$runlevel now works, #177869.Roy Marples
2007-05-14Implement FreeBSD's dlfunc function to avoid ISO warnings on dlsym - thanks ↵Roy Marples
to drizztbsd for find public domain code :)
2007-05-14Use correct function casts. Use dlfunc where available to remove ISO warnings :)Roy Marples
2007-05-14Allow time for pidfiles to be created, #178274.Roy Marples
Use int instead of char for getopt, #178084 thanks to drizztbsd.
2007-04-30restart/schedule stopped services when the trigger service goes inactive on ↵Roy Marples
a restart
2007-04-30/etc/init.d/foo start and stop no longer exit when service is fullyRoy Marples
started or stopped, #176452.
2007-04-26Set fonts in init-early.sh, don't stop services twice when shutting down and ↵Roy Marples
lock prefixed output.
2007-04-25Don't abort select when on signalsRoy Marples