| … | |
… | |
| 90 | /*! Remove the service from the runlevel |
90 | /*! Remove the service from the runlevel |
| 91 | * @param runlevel to remove from |
91 | * @param runlevel to remove from |
| 92 | * @param service to remove |
92 | * @param service to remove |
| 93 | * @return true if sucessful, otherwise false */ |
93 | * @return true if sucessful, otherwise false */ |
| 94 | bool rc_service_delete (const char *runlevel, const char *service); |
94 | bool rc_service_delete (const char *runlevel, const char *service); |
| 95 | |
|
|
| 96 | /*! Save the arguments to find a running daemon |
|
|
| 97 | * @param service to save arguments for |
|
|
| 98 | * @param exec that we started |
|
|
| 99 | * @param name of the process (optional) |
|
|
| 100 | * @param pidfile of the process (optional) |
|
|
| 101 | * @param started if true, add the arguments otherwise remove existing matching arguments */ |
|
|
| 102 | void rc_service_daemon_set (const char *service, const char *exec, |
|
|
| 103 | const char *name, const char *pidfile, |
|
|
| 104 | bool started); |
|
|
| 105 | |
95 | |
| 106 | /*! Returns a description of what the service and/or option does. |
96 | /*! Returns a description of what the service and/or option does. |
| 107 | * @param service to check |
97 | * @param service to check |
| 108 | * @param option to check (if NULL, service description) |
98 | * @param option to check (if NULL, service description) |
| 109 | * @return a newly allocated pointer to the description */ |
99 | * @return a newly allocated pointer to the description */ |