mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
openssh: rework systemd service
This commit is contained in:
parent
60536160db
commit
bdcbca1be2
@ -1,10 +1,13 @@
|
||||
[Unit]
|
||||
Description=OpenSSH server daemon
|
||||
ConditionKernelCommandLine=|ssh
|
||||
ConditionPathExists=|/storage/.cache/services/sshd.conf
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=-/storage/.cache/services/sshd.conf
|
||||
ExecStartPre=/usr/sbin/sshd-keygen
|
||||
ExecStart=/usr/sbin/sshd -D
|
||||
ExecStart=/usr/sbin/sshd -D $SSH_ARGS
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
KillMode=process
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user