From 11e33e81c855395cbd931e99f7452ed6b3fef357 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 28 Mar 2008 08:42:05 +0000 Subject: 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. --- src/includes/rc-misc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/includes/rc-misc.h') 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. */ -- cgit v1.2.3