Loading
nixos/nextcloud-notify_push: use RestartMode=direct
`nextcloud-notify_push.service` requires `nextcloud-notify_push-setup.service`. If the latter fails (e.g. because of Nextcloud not being there yet), the push service would also fail with result 'dependency'. RestartMode=direct doesn't put a unit into failed state IF it's about to be restarted again. That way, `nextcloud-notify_push` will await several restart attempts. Only if the unit fails due to a rate-limit (i.e. too many restarts), the push service will also fail. If the startup is still too slow, it may make sense for administrators to configure higher intervals between the start attempts with RestartSec.