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