mirror of
https://github.com/troglobit/finit.git
synced 2026-10-17 10:49:34 +00:00
Refactor: move advanced service methods from svc.c --> service.c
This patch refactors svc.c into two files: svc.c now as a low-level svc_t API and service.c for the more advanced rest. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
8e9a5ee678
commit
97a48ec5fb
12 files changed
+1024
-861
No files matched your search
+2
-1
@@ -33,6 +33,7 @@
|
||||
#include "../plugin.h"
|
||||
#include "../sig.h"
|
||||
#include "../finit.h"
|
||||
#include "../service.h"
|
||||
|
||||
static void parse(void *arg, int fd, int events);
|
||||
|
||||
@@ -102,7 +103,7 @@ static void parse(void *UNUSED(arg), int fd, int UNUSED(events))
|
||||
case '1'...'5':
|
||||
case '7'...'9':
|
||||
_d("Setting new runlevel %c", rq.runlevel);
|
||||
svc_runlevel(rq.runlevel - '0');
|
||||
service_runlevel(rq.runlevel - '0');
|
||||
break;
|
||||
|
||||
case '6':
|
||||
|
||||
Reference in new issue
Block a user