summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2016-02-10 18:43:02 -0500
committerDaniil Baturin <daniil@baturin.org>2016-02-10 18:43:02 -0500
commited63b65af583a3eccda4509e8fc4d51682ba8148 (patch)
tree21ab716953d8de483cf26366d2f8390ac373c311
parent481b5f0057e4e8ad57e994acc754a907342c2642 (diff)
parenta83d97ef4e4140ba774876909aa4b499e65c746d (diff)
downloadvyos-build-ed63b65af583a3eccda4509e8fc4d51682ba8148.tar.gz
vyos-build-ed63b65af583a3eccda4509e8fc4d51682ba8148.zip
Merge branch 'current' of github.com:vyos/vyos-build into current
-rw-r--r--data/live-build-config/includes.chroot/etc/systemd/system/sshd.service16
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