ssh service: set RuntimeDirectory=sshd to work with recent openssh versions
[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=-/bin/sh -c "/usr/bin/ssh-keygen -A"
11 ExecStartPre=/usr/sbin/sshd -t
12 ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
13 ExecReload=/usr/sbin/sshd -t
14 ExecReload=/bin/kill -HUP $MAINPID
15 KillMode=process
16 Restart=on-failure
17 RestartPreventExitStatus=255
18 Type=notify
19 RuntimeDirectory=sshd
20 RuntimeDirectoryMode=0755
21
22 [Install]
23 WantedBy=multi-user.target
24 Alias=sshd.service