mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +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
|
||||
ConditionKernelCommandLine=|ssh
|
||||
ConditionPathExists=|/storage/.cache/services/sshd.conf
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Restart=on-failure
|
||||
EnvironmentFile=-/storage/.cache/services/sshd.conf
|
||||
ExecStartPre=/usr/bin/ssh-keygen -A
|
||||
ExecStart=/usr/sbin/sshd -D $SSH_ARGS
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
TimeoutStopSec=1s
|
||||
RestartSec=2
|
||||
StartLimitInterval=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
x
Reference in New Issue
Block a user