mirror of
https://github.com/troglobit/finit.git
synced 2026-10-31 13:00:32 +00:00
service: one owner for user-requested start/stop/restart
The D-Bus methods carried byte-for-byte copies of api.c's static start/stop/restart helpers. Promote them to service.c alongside service_reload(), which already serves both callers, and reduce both sides to svc_parse_jobstr-style adapters. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
4 files changed
+90
-75
No files matched your search
@@ -60,6 +60,9 @@ void service_forked (svc_t *svc);
|
||||
void service_ready (svc_t *svc, int ready);
|
||||
|
||||
int service_stop (svc_t *svc);
|
||||
int service_start_now (svc_t *svc);
|
||||
int service_stop_now (svc_t *svc);
|
||||
int service_restart_now (svc_t *svc);
|
||||
int service_reload (svc_t *svc);
|
||||
int service_step (svc_t *svc);
|
||||
void service_step_all (int types);
|
||||
|
||||
Reference in new issue
Block a user