aboutsummaryrefslogtreecommitdiff
path: root/src/librc.c
AgeCommit message (Collapse)Author
2007-12-14Remove Gentoo copyright from all files that I know I have writtenRoy Marples
2007-12-14Allow services to be in /usr/local/etc/init.d, but disallow them being added ↵Roy Marples
to the boot runlevel.
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-28Use a more generic BSD define.Roy Marples
2007-11-20opts -> extra_commands. This is much more descriptive.Roy Marples
2007-11-19Display version on start and allow --version to workRoy Marples
2007-11-14relicense as 2-clause BSD, with the kind permission of GentooRoy Marples
2007-10-23Stop using asprintfRoy Marples
2007-10-12malloc over fatty buffersRoy Marples
2007-10-09Fix failed services a little, and make timeout more saneRoy Marples
2007-10-08Don't stop reading dir contents on errorsRoy 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-05Punt rc_waitpidRoy Marples
2007-10-05Punt rc_rm_dirRoy Marples
2007-10-05Punt rc_ls_dirRoy Marples
2007-10-04rc_service_schedule_clear returns a bool on error nowRoy Marples
2007-10-04LS_DIRS -> LS_DIRRoy Marples
2007-10-04Punt rc_is_dirRoy Marples
2007-10-04punt rc_is_execRoy Marples
2007-10-04punt rc_is_linkRoy Marples
2007-10-04Punt rc_is_fileRoy Marples
2007-10-03rc_service_option_set -> rc_service_value_set, rc_service_option_get -> ↵Roy Marples
rc_service_value_get
2007-10-03rc_schedule_clear -> rc_service_schedule_clear, rc_schedule_start_service -> ↵Roy Marples
rc_service_schedule_start
2007-10-03rc_get_runlevels -> rc_runlevel_listRoy Marples
2007-10-02rc_allow_plug -> rc_service_plugableRoy Marples
2007-10-02rc_set_service_option -> rc_service_option_set, rc_get_service_option -> ↵Roy Marples
rc_service_option_get
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-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-26add hidden definition for rc_waitpid()Mike 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-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-18API change! rc_ls_dir, rc_get_config and rc_get_list no longer takeRoy Marples
a starting list as a first argument. Instead, use rc_strlist_join to append or prepend the new list to an existing list.
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-09-06strdup -> rc_xstrdupRoy Marples
2007-08-28Move more stuff to #definesRoy 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-08Add help to rc-update #188170 and tidy up the code a fair bit.Roy Marples
2007-07-10Rename variableRoy Marples
2007-07-10init scripts and their extra options can now have descriptions, #184327.Roy Marples
2007-07-02Fix error and only let root run init commands except for status and helpRoy Marples
2007-05-11Use clock MONOTONIC to timeout, not localtime, #177514Roy Marples
2007-05-02Don't timeout waiting for checkfs and checkroot. Do a better fix later.Roy Marples
2007-04-25Don't abort select when on signalsRoy Marples