add --restart-ok to systemd and upstart scripts