--- rpms/e-smith-openssh/sme10/e-smith-openssh.spec 2020/12/11 20:41:42 1.5 +++ rpms/e-smith-openssh/sme10/e-smith-openssh.spec 2020/12/11 20:42:24 1.6 @@ -1,4 +1,4 @@ -# $Id: e-smith-openssh.spec,v 1.4 2020/12/11 19:42:15 jpp Exp $ +# $Id: e-smith-openssh.spec,v 1.5 2020/12/11 20:41:42 jpp Exp $ Summary: e-smith module to configure and enable ssh %define name e-smith-openssh @@ -659,3 +659,11 @@ rm -rf $RPM_BUILD_ROOT %files -f %{name}-%{version}-%{release}-filelist %defattr(-,root,root) + +%pre +if [ $1 -gt 1 ] ; then + if [ -e /var/service/sshd/run ] ; then + /usr/bin/sv d sshd + /usr/bin/sv d sshd/log + fi +fi