Use g_list_append instead of g_list_insert(...,-1).
ippd: run same HTTPServer type when run directly or with from systemd.