From 27f97f210658ad566ca6428fecc0aa205b225421 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sun, 17 Feb 2008 15:12:00 +0000 Subject: We need to be able to locate pids by argv, instead of just argv0. --- src/librc/rc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/librc/rc.h') diff --git a/src/librc/rc.h b/src/librc/rc.h index 726d7f98..1f1a9a76 100644 --- a/src/librc/rc.h +++ b/src/librc/rc.h @@ -117,7 +117,7 @@ bool rc_service_delete (const char *runlevel, const char *service); * @param name of the process (optional) * @param pidfile of the process (optional) * @param started if true, add the arguments otherwise remove existing matching arguments */ -bool rc_service_daemon_set (const char *service, const char *exec, +bool rc_service_daemon_set (const char *service, const char *const *argv, const char *name, const char *pidfile, bool started); @@ -445,7 +445,7 @@ char *rc_strcatpaths (const char *path1, const char *paths, ...) SENTINEL; * @param uid to check for * @param pid to check for * @return NULL terminated list of pids */ -pid_t *rc_find_pids (const char *exec, const char *cmd, +pid_t *rc_find_pids (const char *const *argv, const char *cmd, uid_t uid, pid_t pid); #endif -- cgit v1.2.3