[Unit] RequiresMountsFor=/etc/dropbear ConditionFileNotEmpty=/root/.ssh/authorized_keys # Systemd stops units in reverse start order, so ordering dropbear before the # Supervisor and Docker keeps SSH available while their (potentially minutes # long) teardown runs. Both already require the same mounts dropbear needs, so # this adds no extra work to boot. Before=haos-supervisor.service docker.service [Service] Type=forking PIDFile=/run/dropbear.pid ExecStartPre= ExecStart= ExecStart=-/usr/sbin/dropbear -R -E -p 22222 -s KillMode=mixed OOMPolicy=continue