diff options
author | Roy Marples <roy@marples.name> | 2008-07-27 11:30:49 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-07-27 11:30:49 +0000 |
commit | cea206014d80e61e16f53a6c61577d063a7b75b8 (patch) | |
tree | 41767f8334a0d2f91f88760dc912d4e9bcf3da0b /src/librc/rc.h.in | |
parent | 46a74f244e60e30b90f2869b586a27a4405c91cc (diff) |
Attempt to make s-s-d simpler by not enforcing the need for a full path and maybe working better with interpreted scripts.
Diffstat (limited to 'src/librc/rc.h.in')
-rw-r--r-- | src/librc/rc.h.in | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/librc/rc.h.in b/src/librc/rc.h.in index 373c5308..12cc42c3 100644 --- a/src/librc/rc.h.in +++ b/src/librc/rc.h.in @@ -142,7 +142,7 @@ bool rc_service_delete(const char *, const char *); * @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 *, const char *const *, const char *, const char *, +bool rc_service_daemon_set(const char *, const char *, const char *const *, const char *, bool); /*! Returns a description of what the service and/or option does. @@ -202,9 +202,11 @@ RC_SERVICE rc_service_state(const char *); /*! Check if the service started the daemon * @param service to check * @param exec to check + * @param argv to check * @param indx of the daemon (optional - 1st daemon, 2nd daemon, etc) * @return true if started by this service, otherwise false */ -bool rc_service_started_daemon(const char *, const char *const *, int); +bool rc_service_started_daemon(const char *, const char *, + const char *const *, int); /*! Return a saved value for a service * @param service to check @@ -463,11 +465,11 @@ typedef LIST_HEAD(rc_pidlist, rc_pid) RC_PIDLIST; * pid overrides anything else. * If both exec and cmd are given then we ignore exec. * @param exec to check for - * @param cmd to check for + * @param argv to check for * @param uid to check for * @param pid to check for * @return NULL terminated list of pids */ -RC_PIDLIST *rc_find_pids(const char *const *, const char *, uid_t, pid_t); +RC_PIDLIST *rc_find_pids(const char *, const char *const *, uid_t, pid_t); __END_DECLS #endif |