0b5581d752728567bf11118fb48e38f1fbf17adc
[grml-live.git] / etc / grml / fai / config / files / etc / systemd / system / ssh.service / GRMLBASE
1 # This file was deployed via grml-live's
2 # ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/15-initsetup, using
3 # ${GRML_FAI_CONFIG}/config/files/etc/systemd/system/ssh.service/GRMLBASE
4
5 [Unit]
6 Description=OpenBSD Secure Shell server
7 After=network.target auditd.service
8 ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
9
10 [Service]
11 EnvironmentFile=-/etc/default/ssh
12 ExecStartPre=-/bin/sh -c "/usr/bin/ssh-keygen -A"
13 ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
14 ExecReload=/bin/kill -HUP $MAINPID
15 KillMode=process
16 Restart=on-failure
17
18 [Install]
19 WantedBy=multi-user.target
20 Alias=sshd.service
21