Convert a few function to use systemd instead of rc.d