fix(ssh-proxy-service): add everlasting restarting on failure
This commit is contained in:
parent
4b7abd9515
commit
91b7fc71a7
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user