2 Description=Dropbear SSH daemon
3 After=syslog.target network.target auditd.service
6 # If /etc/dropbear is not a directory, and
7 # - the filesystem is RO (i.e. we can not rm the symlink),
8 # create the directory pointed to by the symlink.
9 # - the filesystem is RW (i.e. we can rm the symlink),
10 # replace the symlink with an actual directory
11 ExecStartPre=/bin/sh -c '\
12 if ! [ -d /etc/dropbear ]; then \
13 if rm -f /etc/dropbear; then \
14 mkdir -p /etc/dropbear; \
16 mkdir -p $(readlink /etc/dropbear); \
19 ExecStart=/usr/sbin/dropbear -F -R
20 ExecReload=/bin/kill -HUP $MAINPID
23 WantedBy=multi-user.target