diff options
-rw-r--r-- | data/live-build-config/includes.chroot/etc/systemd/system/sshd.service | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/data/live-build-config/includes.chroot/etc/systemd/system/sshd.service b/data/live-build-config/includes.chroot/etc/systemd/system/sshd.service new file mode 100644 index 00000000..e84142bb --- /dev/null +++ b/data/live-build-config/includes.chroot/etc/systemd/system/sshd.service @@ -0,0 +1,16 @@ +[Unit] +Description=OpenBSD Secure Shell server +After=network.target auditd.service +ConditionPathExists=!/etc/ssh/sshd_not_to_be_run + +[Service] +EnvironmentFile=-/etc/default/ssh +ExecStart=/usr/sbin/sshd -D $SSHD_OPTS +ExecReload=/bin/kill -HUP $MAINPID +ExecStop=/usr/bin/killall sshd +KillMode=process +Restart=on-failure + +[Install] +WantedBy=multi-user.target +Alias=sshd.service |