aboutsummaryrefslogtreecommitdiff
path: root/src/experimentation/gnunet-daemon-experimentation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/experimentation/gnunet-daemon-experimentation.c')
-rw-r--r--src/experimentation/gnunet-daemon-experimentation.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/experimentation/gnunet-daemon-experimentation.c b/src/experimentation/gnunet-daemon-experimentation.c
index ee632ec86..085dd14b1 100644
--- a/src/experimentation/gnunet-daemon-experimentation.c
+++ b/src/experimentation/gnunet-daemon-experimentation.c
@@ -54,8 +54,11 @@ static void
54shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 54shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
55{ 55{
56 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Experimentation daemon shutting down ...\n")); 56 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Experimentation daemon shutting down ...\n"));
57
58 GNUNET_EXPERIMENTATION_scheduler_stop ();
57 GNUNET_EXPERIMENTATION_nodes_stop (); 59 GNUNET_EXPERIMENTATION_nodes_stop ();
58 GNUNET_EXPERIMENTATION_experiments_stop (); 60 GNUNET_EXPERIMENTATION_experiments_stop ();
61 GNUNET_EXPERIMENTATION_storage_stop ();
59 GNUNET_EXPERIMENTATION_capabilities_stop (); 62 GNUNET_EXPERIMENTATION_capabilities_stop ();
60} 63}
61 64
@@ -83,12 +86,14 @@ run (void *cls, char *const *args, const char *cfgfile,
83 } 86 }
84 87
85 GNUNET_EXPERIMENTATION_capabilities_start (); 88 GNUNET_EXPERIMENTATION_capabilities_start ();
89 GNUNET_EXPERIMENTATION_storage_start ();
86 if (GNUNET_SYSERR == GNUNET_EXPERIMENTATION_experiments_start ()) 90 if (GNUNET_SYSERR == GNUNET_EXPERIMENTATION_experiments_start ())
87 { 91 {
88 GNUNET_SCHEDULER_add_now (&shutdown_task, NULL); 92 GNUNET_SCHEDULER_add_now (&shutdown_task, NULL);
89 return; 93 return;
90 } 94 }
91 GNUNET_EXPERIMENTATION_nodes_start (); 95 GNUNET_EXPERIMENTATION_nodes_start ();
96 GNUNET_EXPERIMENTATION_scheduler_start ();
92 97
93 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task, 98 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task,
94 NULL); 99 NULL);