mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-28 23:46:29 +00:00
Improve dropbear.service to avoid failed state after stop (#1286)
So far the exit code has been evaluated, which seems to be non-zero even with a regular term signal. With that systemd assumed the service is in a failed state, when in fact this seems the regular behavior of dropbear when shutting it down.
This commit is contained in:
parent
fdd8c246dd
commit
ab19c8c6cf
@ -3,6 +3,9 @@ RequiresMountsFor=/etc/dropbear
|
|||||||
ConditionFileNotEmpty=/root/.ssh/authorized_keys
|
ConditionFileNotEmpty=/root/.ssh/authorized_keys
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
PIDFile=/run/dropbear.pid
|
||||||
ExecStartPre=
|
ExecStartPre=
|
||||||
ExecStart=
|
ExecStart=
|
||||||
ExecStart=/usr/sbin/dropbear -F -R -E -p 22222 -s
|
ExecStart=-/usr/sbin/dropbear -R -E -p 22222 -s
|
||||||
|
KillMode=mixed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user