I think this should be done by systemd.