X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2Fmain.c;h=1d8f78b5b62959fedd4ae029ef5161bdaee6c7d1;hb=7aabe525ced6b1b2d5ff727795a673b7ca0b3c3f;hp=19786eb488d4083b1cfa63d1932d8e647a3de5d5;hpb=aa9bd64b241ef1ed52d227c1eaa530c046ce58cc;p=systembsd.git diff --git a/src/main.c b/src/main.c index 19786eb..1d8f78b 100644 --- a/src/main.c +++ b/src/main.c @@ -21,20 +21,14 @@ #include "config.c" -#include "interfaces/hostnamed/hostnamed.c" -#include "interfaces/localed/localed.c" -#include "interfaces/timedated/timedated.c" -#include "interfaces/logind/logind.c" - gboolean systemd_utils_init() { if(!config_init()) { - gchar *tmp; - tmp = "/etc/systemd_compat.conf"; - g_printf("FAILED to open config %s! did you `make install`?\n", tmp); + g_printf("FAILED to open config /etc/systemd_compat.conf! did you `make install`?\n", tmp); return FALSE; - } + } + return TRUE; } @@ -56,15 +50,6 @@ int main() { hostnamed_argv[0] = "/usr/local/libexec/systemd-hostnamed-handler"; localed_argv[0] = "/usr/local/libexec/systemd-localed-handler"; - /*hostnamed_init_ok = g_spawn_async(NULL, hostnamed_argv, NULL, G_SPAWN_DEFAULT, NULL, NULL, hostnamed_pid, NULL); - localed_init_ok = g_spawn_async(NULL, localed_argv, NULL, G_SPAWN_DEFAULT, NULL, NULL, localed_pid, NULL); - - hostnamed_source = g_child_watch_source_new(*hostnamed_pid); - localed_source = g_child_watch_source_new(*localed_pid); */ - - /*g_source_attach(hostnamed_source, NULL); - g_source_attach(localed_source, NULL);*/ - g_main_loop_run(mloop); g_main_loop_unref(mloop);