~ci-train-bot/url-dispatcher/url-dispatcher-ubuntu-zesty-2566

« back to all changes in this revision

Viewing changes to service/service.c

  • Committer: CI Train Bot
  • Author(s): Ted Gould
  • Date: 2015-11-10 14:37:05 UTC
  • mfrom: (89.1.9 no-db-no-play)
  • Revision ID: ci-train-bot@canonical.com-20151110143705-6jaxzrfh5wmcrsuj
Remove the cache if the service fails to start. Fail to start if we can't create the database. Fixes: #1483854
Approved by: PS Jenkins bot, Ken VanDine

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        guint term_source = g_unix_signal_add(SIGTERM, sig_term, mainloop);
41
41
 
42
42
        OverlayTracker * tracker = overlay_tracker_new();
43
 
        dispatcher_init(mainloop, tracker);
 
43
        if (!dispatcher_init(mainloop, tracker)) {
 
44
                return -1;
 
45
        }
44
46
 
45
47
        /* Run Main */
46
48
        g_main_loop_run(mainloop);