Allow the LegacyService to initialize in headless mode

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>