Merge remote-tracking branch 'origin/github/pr/148'
[grml-live.git] / etc / grml / fai / config / files / etc / systemd / system / ssh.service / GRMLBASE
1 # This file was deployed via grml-live.
2
3 [Unit]
4 Description=OpenBSD Secure Shell server
5 After=network.target auditd.service
6 ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
7
8 [Service]
9 EnvironmentFile=-/etc/default/ssh
10 ExecStartPre=-/usr/bin/ssh-keygen -A
11 ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
12 ExecReload=/usr/sbin/sshd -t
13 ExecReload=/bin/kill -HUP $MAINPID
14 KillMode=process
15 Restart=on-failure
16 RestartPreventExitStatus=255
17 Type=notify
18 RuntimeDirectory=sshd
19 RuntimeDirectoryMode=0755
20
21 [Install]
22 WantedBy=multi-user.target
23 Alias=sshd.service