# Managed by Ansible (role: pia-gateway). Do not edit by hand. # # One bounded recovery pass (files/pia_gateway.py `recover`). Exit codes 1 # (unhealthy, decision made) and 3 (safety drift handled with an emergency # close + alert) are normal outcomes, not unit failures — only a crash or a # corrupt state file (2) is, and that triggers the OnFailure notifier. [Unit] Description=PIA gateway automatic recovery pass After=pia-killswitch.service network-online.target Wants=network-online.target OnFailure=pia-gateway-onfailure.service [Service] Type=oneshot ExecStart={{ pia_gateway_program }} recover SuccessExitStatus=1 3 TimeoutStartSec={{ (pia_recovery_max_duration_sec | int) + 300 }} LimitCORE=0 PrivateTmp=yes