From a83d97ef4e4140ba774876909aa4b499e65c746d Mon Sep 17 00:00:00 2001 From: Kim Hagen Date: Tue, 9 Feb 2016 02:59:28 -0500 Subject: Add sshd.service file to cleanly close ssh sessions. --- .../includes.chroot/etc/systemd/system/sshd.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 data/live-build-config/includes.chroot/etc/systemd/system/sshd.service (limited to 'data') 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 -- cgit v1.2.3