replace systemd hook with script