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:
Joachim Nilsson committed 2015-06-07 03:23:46 +02:00
1 parent 8e9a5ee678
commit 97a48ec5fb
12 files changed
+1024 -861

No files matched your search

+3 -3
View File
@@ -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);