diff options
author | Roy Marples <roy@marples.name> | 2008-03-28 08:42:05 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-28 08:42:05 +0000 |
commit | 11e33e81c855395cbd931e99f7452ed6b3fef357 (patch) | |
tree | 2af516723abe43f67f38b5419867288913e85169 /src/includes | |
parent | 5e8ed2aecabf48895e6d3d090591ffb59fc7588b (diff) |
Remove rc_service_start/stop from librc as they block and unmask signals. The application may not wish this behaviour and should fork/exec the service itself.
Diffstat (limited to 'src/includes')
-rw-r--r-- | src/includes/rc-misc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h index 0906e3ea..70850161 100644 --- a/src/includes/rc-misc.h +++ b/src/includes/rc-misc.h @@ -196,6 +196,10 @@ void env_filter(void); void env_config(void); bool service_plugable(const char *service); int signal_setup(int sig, void (*handler)(int)); +pid_t exec_service(const char *, const char *); + +#define service_start(service) exec_service(service, "start"); +#define service_stop(service) exec_service(service, "stop"); /* basename_c never modifies the argument. As such, if there is a trailing * slash then an empty string is returned. */ |