Change-Id: I4db2beb3e356cf61f6aa2d82beeacdfb37a48bab
Reviewed-on: http://photon-jenkins.eng.vmware.com/474
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: suezzelur <anishs@vmware.com>
| ... | ... |
@@ -65,10 +65,10 @@ make install DESTDIR=%{buildroot}
|
| 65 | 65 |
|
| 66 | 66 |
%post |
| 67 | 67 |
/sbin/ldconfig |
| 68 |
-%systemd_post auditd.service |
|
| 68 |
+/bin/systemctl enable auditd.service |
|
| 69 | 69 |
|
| 70 | 70 |
%preun |
| 71 |
-%systemd_preun auditd.service |
|
| 71 |
+/bin/systemctl disable auditd.service |
|
| 72 | 72 |
|
| 73 | 73 |
%postun |
| 74 | 74 |
/sbin/ldconfig |
| ... | ... |
@@ -39,8 +39,14 @@ mv %{buildroot}/lib/systemd/system/rsyslog.service %{buildroot}%{_libdir}/syste
|
| 39 | 39 |
find %{buildroot} -name '*.la' -delete
|
| 40 | 40 |
%check |
| 41 | 41 |
make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
|
| 42 |
-%post -p /sbin/ldconfig |
|
| 43 |
-%postun -p /sbin/ldconfig |
|
| 42 |
+%post |
|
| 43 |
+/sbin/ldconfig |
|
| 44 |
+/bin/systemctl enable rsyslog.service |
|
| 45 |
+ |
|
| 46 |
+%postun |
|
| 47 |
+/sbin/ldconfig |
|
| 48 |
+/bin/systemctl disable rsyslog.service |
|
| 49 |
+ |
|
| 44 | 50 |
%files |
| 45 | 51 |
%defattr(-,root,root) |
| 46 | 52 |
%{_sbindir}/*
|