X-Git-Url: http://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Ffiles%2Fetc%2Fsystemd%2Fsystem%2Fssh.service%2FGRMLBASE;h=e41b0581d5cc9f1e5eaba273bd6aa4b2226529a5;hp=e752f65c7b80b587083b8ee8a437305bad4881eb;hb=e23b03b9c091c46115fdfb87810e2418c7039c76;hpb=1b8b36a9ec8242d2c6fd628d4ca25d99efb9e2f3 diff --git a/etc/grml/fai/config/files/etc/systemd/system/ssh.service/GRMLBASE b/etc/grml/fai/config/files/etc/systemd/system/ssh.service/GRMLBASE index e752f65..e41b058 100644 --- a/etc/grml/fai/config/files/etc/systemd/system/ssh.service/GRMLBASE +++ b/etc/grml/fai/config/files/etc/systemd/system/ssh.service/GRMLBASE @@ -8,12 +8,17 @@ ConditionPathExists=!/etc/ssh/sshd_not_to_be_run [Service] EnvironmentFile=-/etc/default/ssh ExecStartPre=-/bin/sh -c "/usr/bin/ssh-keygen -A" +ExecStartPre=/usr/sbin/sshd -t ExecStart=/usr/sbin/sshd -D $SSHD_OPTS +ExecReload=/usr/sbin/sshd -t ExecReload=/bin/kill -HUP $MAINPID KillMode=process Restart=on-failure +RestartPreventExitStatus=255 +Type=notify +RuntimeDirectory=sshd +RuntimeDirectoryMode=0755 [Install] WantedBy=multi-user.target Alias=sshd.service -