mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
sshd: restart on failure. dont wait for network
This commit is contained in:
parent
2fa61b781f
commit
cae51fc58f
@ -2,14 +2,16 @@
|
|||||||
Description=OpenSSH server daemon
|
Description=OpenSSH server daemon
|
||||||
ConditionKernelCommandLine=|ssh
|
ConditionKernelCommandLine=|ssh
|
||||||
ConditionPathExists=|/storage/.cache/services/sshd.conf
|
ConditionPathExists=|/storage/.cache/services/sshd.conf
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Restart=on-failure
|
||||||
EnvironmentFile=-/storage/.cache/services/sshd.conf
|
EnvironmentFile=-/storage/.cache/services/sshd.conf
|
||||||
ExecStartPre=/usr/bin/ssh-keygen -A
|
ExecStartPre=/usr/bin/ssh-keygen -A
|
||||||
ExecStart=/usr/sbin/sshd -D $SSH_ARGS
|
ExecStart=/usr/sbin/sshd -D $SSH_ARGS
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
TimeoutStopSec=1s
|
TimeoutStopSec=1s
|
||||||
|
RestartSec=2
|
||||||
|
StartLimitInterval=0
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user