rc_set_service_daemon -> rc_service_daemon_set
This commit is contained in:
parent
cef0ad3215
commit
4e9e8d075c
@ -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)
|
||||
|
@ -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)
|
||||
|
2
src/rc.h
2
src/rc.h
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user