fix(ssh-proxy-service): add everlasting restarting on failure

This commit is contained in:
thek4n 2025-08-21 21:55:11 +03:00
parent 4b7abd9515
commit 91b7fc71a7

View File

@ -8,7 +8,10 @@ After=default.target
[Service] [Service]
Type=simple Type=simple
ExecStart=/usr/bin/ssh -o ControlMaster=no -o ExitOnForwardFailure=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -vCTN -D 127.0.0.1:1080 %i ExecStart=/usr/bin/ssh -o ControlMaster=no -o ExitOnForwardFailure=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -vCTN -D 127.0.0.1:1080 %i
Restart=on-failure Restart=always
RestartSec=3
StartLimitInterval=0
StartLimitBurst=0
[Install] [Install]
WantedBy=default.target WantedBy=default.target