diff options
author | Kim Hagen <kim.sidney@gmail.com> | 2016-02-09 02:59:28 -0500 |
---|---|---|
committer | Kim Hagen <kim.sidney@gmail.com> | 2016-02-09 02:59:28 -0500 |
commit | a83d97ef4e4140ba774876909aa4b499e65c746d (patch) | |
tree | 1e4e70e220b5408c05b41ec539f01bf6e7eec374 | |
parent | a70d19d2fd470584df6ee347b3382438228c0465 (diff) | |
download | vyos-build-a83d97ef4e4140ba774876909aa4b499e65c746d.tar.gz vyos-build-a83d97ef4e4140ba774876909aa4b499e65c746d.zip |
Add sshd.service file to cleanly close ssh sessions.
-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 |