Add compatibility with systemd hook