--- rpms/e-smith-openssh/sme10/e-smith-openssh-2.6.0-bz11147-bz11109-systemd-update.patch 2020/12/11 20:41:42 1.1 +++ rpms/e-smith-openssh/sme10/e-smith-openssh-2.6.0-bz11147-bz11109-systemd-update.patch 2020/12/11 21:00:43 1.3 @@ -37,11 +37,11 @@ diff -Nur e-smith-openssh-2.6.0.old/crea -# Set up links to daemontools. Note: /etc/init.d/sshd is now obsolete. -safe_symlink("../daemontools", "root/etc/rc.d/init.d/supervise/sshd"); -+$event="e-smith-openssh-update"; ++my $event="e-smith-openssh-update"; +# systemd-specific action mandatory for this package-update event +event_link("systemd-reload", $event, "89"); +event_link("systemd-default", $event, "88"); -+safe_symlink("try-restart", "root/etc/e-smith/events/$event/services2adjust/sshd"); ++safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/sshd"); -service_link_enhanced("sshd", "S85", "7"); -safe_symlink("../init.d/supervise/sshd", "root/etc/rc.d/rc6.d/K25sshd"); @@ -161,10 +161,11 @@ diff -Nur e-smith-openssh-2.6.0.old/root diff -Nur e-smith-openssh-2.6.0.old/root/usr/lib/systemd/system/sshd.service.d/50-koozali.conf e-smith-openssh-2.6.0/root/usr/lib/systemd/system/sshd.service.d/50-koozali.conf --- e-smith-openssh-2.6.0.old/root/usr/lib/systemd/system/sshd.service.d/50-koozali.conf 1969-12-31 19:00:00.000000000 -0500 +++ e-smith-openssh-2.6.0/root/usr/lib/systemd/system/sshd.service.d/50-koozali.conf 2020-12-11 15:25:37.919000000 -0500 -@@ -0,0 +1,6 @@ +@@ -0,0 +1,7 @@ +[Service] +ExecStartPre=/sbin/e-smith/service-status sshd +ExecStartPre=/sbin/e-smith/systemd/sshd-prepare ++ExecStartPre=-/sbin/e-smith/expand-template /etc/ssh/sshd_config + +[Install] +WantedBy=sme-server.target