Commit Graph

72 Commits

Author SHA1 Message Date
Roy Marples
87ea3e9e3b Punt rc_is_dir 2007-10-04 16:54:29 +00:00
Roy Marples
6d5ac5716b rc_make_env -> rc_env_config, rc_filter_env -> rc_env_filter 2007-10-03 14:48:50 +00:00
Roy Marples
4b7efeafa6 rc_service_option_set -> rc_service_value_set, rc_service_option_get -> rc_service_value_get 2007-10-03 14:22:45 +00:00
Roy Marples
b675ca4779 Compile fix 2007-10-02 14:37:30 +00:00
Roy Marples
69ebf0c738 rc_allow_plug -> rc_service_plugable 2007-10-02 09:57:23 +00:00
Roy Marples
cef0ad3215 rc_set_service_option -> rc_service_option_set, rc_get_service_option -> rc_service_option_get 2007-10-02 09:02:08 +00:00
Roy Marples
0fae5deeb1 Plug a leak 2007-09-29 17:20:52 +00:00
Roy Marples
b19e646575 Rationalise more functions into rc_service_ 2007-09-29 16:54:58 +00:00
Roy Marples
837f43e163 librc no longer uses libeinfo. deptree function names are now all under rc_deptree_ 2007-09-29 16:42:08 +00:00
Roy Marples
7274301be2 rc_service_state now returns the state as a mask, which means that we can do things with just the one call making is more efficient. 2007-09-28 14:53:38 +00:00
Roy Marples
6f7f447978 enums are now fixed to specific values and are in UPPER CASE. 2007-09-28 12:29:23 +00:00
Roy Marples
8a7b58a73d rc_is_env is now rc_env_bool and just works with boolean values. 2007-09-26 07:05:33 +00:00
Roy Marples
c6c7df47a0 Revert last patch 2007-09-25 17:30:07 +00:00
Roy Marples
1a6451654f We no longer use bool in our public headers, using int instead. 2007-09-25 17:19:02 +00:00
Mike Frysinger
284286004e Add support for describing the options in the C programs. 2007-09-25 16:21:38 +00:00
Roy Marples
1e4e8ed27a Initial doxygen documentation for rc.h and einfo.h. Plus some header clean ups. 2007-09-25 15:38:21 +00:00
Roy Marples
495690ea5e Plug some leaks 2007-09-24 09:07:00 +00:00
Roy Marples
b6aa1c857c Added the checkown applet based on the work by Renato Caldas, #192682
checkdir ensures that the specified files (or directories) are owned
by the current user/group or as specified on the command line. You can
optionally check permissions too.
2007-09-19 16:27:37 +00:00
Roy Marples
81c009e47d Don't be an ass - don't free the 2nd list. Instead just empty it. 2007-09-18 15:43:19 +00:00
Roy Marples
75b5fdff29 Match the recent api change to rc_strlist_join also. We now free the 2nd list for ease of use. 2007-09-18 14:08:56 +00:00
Roy Marples
c8b03c96b7 API change! rc_config_env is renamed to rc_make_env and takes no argument. 2007-09-18 12:20:55 +00:00
Roy Marples
936dc94351 API change! rc_ls_dir, rc_get_config and rc_get_list no longer take
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-18 12:04:51 +00:00
Roy Marples
f1bba12892 API change! rc_strlist_add and friends now take char *** instead of
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-18 11:36:55 +00:00
Roy Marples
d3bd76486a More path fixes thanks to Thomas Pani 2007-08-28 16:28:33 +00:00
Roy Marples
f7583144f3 Use correct defines 2007-08-28 13:10:07 +00:00
Roy Marples
144d9653e1 Undocument pause action, fix --nodeps and --ifstarted, #190045. 2007-08-28 13:06:44 +00:00
Roy Marples
849b983c3f #define shutdown 2007-08-28 09:17:04 +00:00
Roy Marples
d6acd7d83e Move more stuff to #defines 2007-08-28 09:13:46 +00:00
Roy Marples
36118e7dbd Fix ksoftlevel handling, #190420. 2007-08-28 08:50:04 +00:00
Roy Marples
1ef8a7f041 Only open /proc/cmdline if it exists, #189686 thanks to Christian Affolter 2007-08-22 14:10:46 +00:00
Roy Marples
b10bd4b9d7 Stop un-needed services when changing runlevels, #189050. 2007-08-17 12:14:04 +00:00
Roy Marples
eba9b8ac14 Fully move esyslog into rc 2007-08-16 17:09:57 +00:00
Roy Marples
6e5c8f8e5a Add esyslog support 2007-08-16 16:53:20 +00:00
Roy Marples
0084bc41ef Don't link to rt anymore as it makes dlopen leak - we now use nanosleeps to 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-09 14:33:20 +00:00
Roy Marples
1e4357ad01 Boot properly when we cannot set an early font, #187628. 2007-08-04 20:35:05 +00:00
Roy Marples
3e5526fd76 Fix rc-update, #187487 and release rc2. 2007-08-04 15:05:12 +00:00
Roy Marples
c674026f9e All our binaries are now mulicalls into rc, which makes our on disk size
a lot smaller.
2007-07-31 16:05:56 +00:00
Roy Marples
075e80b358 Merge some of reb's OpenBSD fixes in 2007-07-25 20:58:23 +00:00
Roy Marples
af2d9995d7 appending noinitd=xdm will skip the xdm service when first booting, #181858. 2007-07-23 11:36:12 +00:00
Roy Marples
6343b48893 RC_DEPEND_STRICT now controls dependency strictness.
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-21 12:49:51 +00:00
Roy Marples
74d52e749d Don't do interactive when changing init, #174141. 2007-07-11 13:02:05 +00:00
Roy Marples
356c41f77c Punt the dodgy ebuffer code. We now force prefixing for parallel starts which also reduces our variable pollution. 2007-07-11 12:06:37 +00:00
Roy Marples
7bb24d8058 Remove a debug line 2007-07-10 13:15:07 +00:00
Roy Marples
1cda2a2036 We no longer care about numerical runlevels, #184733. 2007-07-10 11:42:56 +00:00
Roy Marples
f28763d492 As we're running each plugin in a fork, we need to call our cleanup code so 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-04 16:02:01 +00:00
Roy Marples
0fdc53d54d Add --nocolor to more programs 2007-06-28 15:44:14 +00:00
Roy Marples
f9220d3e28 Change pwd to / for all init scripts, #181224. 2007-06-26 09:20:42 +00:00
Roy Marples
64e6dcfc9f Create a function for running init.sh and init-early.sh which saves on code and removes a gcc-4.2 warning 2007-05-22 12:25:43 +00:00
Roy Marples
237a66b05c Default eend to SUCCESS if no options given 2007-05-16 18:45:16 +00:00
Roy Marples
14c59d4071 RC_INTERACTIVE now works, #178331. 2007-05-14 12:48:37 +00:00