rc_set_service_daemon -> rc_service_daemon_set

This commit is contained in:
Roy Marples 2007-10-02 09:04:10 +00:00
parent cef0ad3215
commit 4e9e8d075c
4 changed files with 6 additions and 6 deletions

View File

@ -283,7 +283,7 @@ static bool _match_daemon (const char *path, const char *file,
return (m == 111 ? true : false); 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, const char *name, const char *pidfile,
bool started) bool started)
{ {
@ -368,7 +368,7 @@ void rc_set_service_daemon (const char *service, const char *exec,
free (mpidfile); free (mpidfile);
free (dirpath); 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, bool rc_service_started_daemon (const char *service, const char *exec,
int indx) int indx)

View File

@ -83,6 +83,7 @@ librc_hidden_proto(rc_schedule_clear)
librc_hidden_proto(rc_schedule_start_service) librc_hidden_proto(rc_schedule_start_service)
librc_hidden_proto(rc_service_add) librc_hidden_proto(rc_service_add)
librc_hidden_proto(rc_service_daemons_crashed) 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_delete)
librc_hidden_proto(rc_service_description) librc_hidden_proto(rc_service_description)
librc_hidden_proto(rc_service_exists) 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_started_daemon)
librc_hidden_proto(rc_service_state) librc_hidden_proto(rc_service_state)
librc_hidden_proto(rc_set_runlevel) librc_hidden_proto(rc_set_runlevel)
librc_hidden_proto(rc_set_service_daemon)
librc_hidden_proto(rc_strcatpaths) librc_hidden_proto(rc_strcatpaths)
librc_hidden_proto(rc_strlist_add) librc_hidden_proto(rc_strlist_add)
librc_hidden_proto(rc_strlist_addu) librc_hidden_proto(rc_strlist_addu)

View File

@ -149,7 +149,7 @@ bool rc_service_option_set (const char *service, const char *option,
* @param name of the process (optional) * @param name of the process (optional)
* @param pidfile of the process (optional) * @param pidfile of the process (optional)
* @param started if true, add the arguments otherwise remove existing matching arguments */ * @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, const char *name, const char *pidfile,
bool started); bool started);
/*! Check if the service started the daemon /*! Check if the service started the daemon

View File

@ -758,7 +758,7 @@ int start_stop_daemon (int argc, char **argv)
unlink (pidfile); unlink (pidfile);
if (svcname) if (svcname)
rc_set_service_daemon (svcname, exec, cmd, pidfile, false); rc_service_daemon_set (svcname, exec, cmd, pidfile, false);
exit (EXIT_SUCCESS); exit (EXIT_SUCCESS);
} }
@ -1032,7 +1032,7 @@ int start_stop_daemon (int argc, char **argv)
} }
if (svcname) if (svcname)
rc_set_service_daemon (svcname, exec, cmd, pidfile, true); rc_service_daemon_set (svcname, exec, cmd, pidfile, true);
exit (EXIT_SUCCESS); exit (EXIT_SUCCESS);
} }