From 2e52b9f2956ac629598e0d0c201af38194904e16 Mon Sep 17 00:00:00 2001 From: Scott Little Date: Mon, 2 Oct 2017 16:45:32 -0400 Subject: [PATCH 2/3] WRS: spec-sanlock-systemctl-post-enable-preun-disable.patch --- SPECS/sanlock.spec | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/SPECS/sanlock.spec b/SPECS/sanlock.spec index 92b81bb..b4996de 100644 --- a/SPECS/sanlock.spec +++ b/SPECS/sanlock.spec @@ -108,19 +108,8 @@ getent passwd sanlock > /dev/null || /usr/sbin/useradd \ /usr/sbin/usermod -a -G disk sanlock %post -%if %{with_systemd} -%systemd_post wdmd.service sanlock.service -%endif - -%preun -%if %{with_systemd} -%systemd_preun wdmd.service sanlock.service -%endif - -%postun -%if %{with_systemd} -%systemd_postun -%endif + /bin/systemctl enable sanlock.service >/dev/null 2>&1 || : + /bin/systemctl enable wdmd.service >/dev/null 2>&1 || : %files %defattr(-,root,root,-) -- 1.9.1