aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-02 09:04:10 +0000
committerRoy Marples <roy@marples.name>2007-10-02 09:04:10 +0000
commit4e9e8d075cddb6f9d1e9c7baba976b99e9366304 (patch)
tree7bc1fc89166308c881541c529fd90c0ba9df5b26
parentcef0ad32157562efd93c7ce154a11c0abfd1a7b2 (diff)
rc_set_service_daemon -> rc_service_daemon_set
-rw-r--r--src/librc-daemon.c4
-rw-r--r--src/librc.h2
-rw-r--r--src/rc.h2
-rw-r--r--src/start-stop-daemon.c4
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)
diff --git a/src/rc.h b/src/rc.h
index 87bc9b8a..921d4a6f 100644
--- a/src/rc.h
+++ b/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
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);
}