mirror of
https://github.com/troglobit/finit.git
synced 2026-10-24 11:54:36 +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
@@ -32,7 +32,7 @@
|
||||
#include "helpers.h"
|
||||
#include "private.h"
|
||||
#include "plugin.h"
|
||||
#include "svc.h"
|
||||
#include "service.h"
|
||||
#include "sig.h"
|
||||
#include "tty.h"
|
||||
#include "libite/lite.h"
|
||||
@@ -245,7 +245,7 @@ int main(int argc, char* argv[])
|
||||
/*
|
||||
* Start all bootstrap tasks, no network available!
|
||||
*/
|
||||
svc_bootstrap();
|
||||
service_bootstrap();
|
||||
|
||||
/*
|
||||
* Network stuff
|
||||
@@ -267,7 +267,7 @@ int main(int argc, char* argv[])
|
||||
* tasks/services in the configured runlevel
|
||||
*/
|
||||
parse_finit_d(rcsd);
|
||||
svc_runlevel(cfglevel);
|
||||
service_runlevel(cfglevel);
|
||||
|
||||
_d("Running svc up hooks ...");
|
||||
plugin_run_hooks(HOOK_SVC_UP);
|
||||
|
||||
Reference in new issue
Block a user