aboutsummaryrefslogtreecommitdiff
path: root/src/rc.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-11 07:15:02 +0000
committerRoy Marples <roy@marples.name>2007-04-11 07:15:02 +0000
commitf754c661f57225b92ab72ce8867607341efa0c53 (patch)
treebdab51fe000b4f254e9e936f460b92e11d99cb41 /src/rc.h
parentffc96d8d892cf5b5433eadb5a305d64ab23b274d (diff)
Add new service hooks, remove pmake stuff from our Makefile and fix rc_services_in_state for scheduled.
Diffstat (limited to 'src/rc.h')
-rw-r--r--src/rc.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/rc.h b/src/rc.h
index cfc518b2..e86531c9 100644
--- a/src/rc.h
+++ b/src/rc.h
@@ -127,7 +127,11 @@ void rc_free_deptree (rc_depinfo_t *deptree);
int _splash_hook (rc_hook_t hook, const char *name);
Plugins are called when rc does something. This does not indicate an
end result and the plugin should use the above functions to query things
- like service status. */
+ like service status.
+ The service hooks have extra ones - now and done. This is because after
+ start_in we may start other services before we start the service in
+ question. now shows we really will start the service now and done shows
+ when we have done it as may start scheduled services at this point. */
typedef enum
{
rc_hook_runlevel_stop_in = 1,
@@ -135,8 +139,12 @@ typedef enum
rc_hook_runlevel_start_in,
rc_hook_runlevel_start_out,
rc_hook_service_stop_in,
+ rc_hook_service_stop_now,
+ rc_hook_service_stop_done,
rc_hook_service_stop_out,
rc_hook_service_start_in,
+ rc_hook_service_start_now,
+ rc_hook_service_start_done,
rc_hook_service_start_out
} rc_hook_t;
@@ -177,6 +185,7 @@ char **rc_config_env (char **env);
char **rc_strlist_add (char **list, const char *item);
char **rc_strlist_addsort (char **list, const char *item);
char **rc_strlist_addsortc (char **list, const char *item);
+char **rc_strlist_addsortu (char **list, const char *item);
char **rc_strlist_delete (char **list, const char *item);
void rc_strlist_reverse (char **list);
void rc_strlist_free (char **list);