cut out config.c & config.h, they are unnessecary
[systembsd.git] / src / main.c
index 19786eb488d4083b1cfa63d1932d8e647a3de5d5..1d8f78b5b62959fedd4ae029ef5161bdaee6c7d1 100644 (file)
 
 #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);