aboutsummaryrefslogtreecommitdiff
path: root/src/rc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc.h')
-rw-r--r--src/rc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rc.h b/src/rc.h
index fe2447de..6f8b7f56 100644
--- a/src/rc.h
+++ b/src/rc.h
@@ -93,6 +93,16 @@ bool rc_service_add (const char *runlevel, const char *service);
* @return true if sucessful, otherwise false */
bool rc_service_delete (const char *runlevel, const char *service);
+/*! Save the arguments to find a running daemon
+ * @param service to save arguments for
+ * @param exec that we started
+ * @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_service_daemon_set (const char *service, const char *exec,
+ const char *name, const char *pidfile,
+ bool started);
+
/*! Returns a description of what the service and/or option does.
* @param service to check
* @param option to check (if NULL, service description)