Systemd support, providing backwards compatibility via FILE_RC class [Closes: issue1015]
[grml-live.git] / etc / grml / fai / config / files / etc / systemd / system / ssh-bootoption.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-bootoption.service/GRMLBASE
4
5 [Unit]
6 Description=OpenBSD Secure Shell server
7 After=ssh-keygen network.target auditd.service
8 ConditionKernelCommandLine=ssh
9 ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
10
11 [Service]
12 EnvironmentFile=-/etc/default/ssh
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