diff options
-rw-r--r-- | src/librc-daemon.c | 4 | ||||
-rw-r--r-- | src/librc.h | 2 | ||||
-rw-r--r-- | src/rc.h | 2 | ||||
-rw-r--r-- | src/start-stop-daemon.c | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/librc-daemon.c b/src/librc-daemon.c index 7003591f..b1734f67 100644 --- a/src/librc-daemon.c +++ b/src/librc-daemon.c @@ -283,7 +283,7 @@ static bool _match_daemon (const char *path, const char *file, return (m == 111 ? true : false); } -void rc_set_service_daemon (const char *service, const char *exec, +void rc_service_daemon_set (const char *service, const char *exec, const char *name, const char *pidfile, bool started) { @@ -368,7 +368,7 @@ void rc_set_service_daemon (const char *service, const char *exec, free (mpidfile); free (dirpath); } -librc_hidden_def(rc_set_service_daemon) +librc_hidden_def(rc_service_daemon_set) bool rc_service_started_daemon (const char *service, const char *exec, int indx) diff --git a/src/librc.h b/src/librc.h index 9ec674d1..948be8f3 100644 --- a/src/librc.h +++ b/src/librc.h @@ -83,6 +83,7 @@ librc_hidden_proto(rc_schedule_clear) librc_hidden_proto(rc_schedule_start_service) librc_hidden_proto(rc_service_add) librc_hidden_proto(rc_service_daemons_crashed) +librc_hidden_proto(rc_service_daemon_set) librc_hidden_proto(rc_service_delete) librc_hidden_proto(rc_service_description) librc_hidden_proto(rc_service_exists) @@ -102,7 +103,6 @@ librc_hidden_proto(rc_services_scheduled_by) librc_hidden_proto(rc_service_started_daemon) librc_hidden_proto(rc_service_state) librc_hidden_proto(rc_set_runlevel) -librc_hidden_proto(rc_set_service_daemon) librc_hidden_proto(rc_strcatpaths) librc_hidden_proto(rc_strlist_add) librc_hidden_proto(rc_strlist_addu) @@ -149,7 +149,7 @@ bool rc_service_option_set (const char *service, const char *option, * @param name of the process (optional) * @param pidfile of the process (optional) * @param started if true, add the arguments otherwise remove existing matching arguments */ -void rc_set_service_daemon (const char *service, const char *exec, +void rc_service_daemon_set (const char *service, const char *exec, const char *name, const char *pidfile, bool started); /*! Check if the service started the daemon diff --git a/src/start-stop-daemon.c b/src/start-stop-daemon.c index 6916aafc..8fdcaa33 100644 --- a/src/start-stop-daemon.c +++ b/src/start-stop-daemon.c @@ -758,7 +758,7 @@ int start_stop_daemon (int argc, char **argv) unlink (pidfile); if (svcname) - rc_set_service_daemon (svcname, exec, cmd, pidfile, false); + rc_service_daemon_set (svcname, exec, cmd, pidfile, false); exit (EXIT_SUCCESS); } @@ -1032,7 +1032,7 @@ int start_stop_daemon (int argc, char **argv) } if (svcname) - rc_set_service_daemon (svcname, exec, cmd, pidfile, true); + rc_service_daemon_set (svcname, exec, cmd, pidfile, true); exit (EXIT_SUCCESS); } |