Source1: %{name}.manifest
Requires(post): /sbin/ldconfig
+Requires(post): /bin/systemctl
Requires(postun): /sbin/ldconfig
+Requires(postun): /bin/systemctl
Requires: pass >= 0.0.1
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
/sbin/ldconfig
systemd-tmpfiles /usr/lib/tmpfiles.d/pass-hal.conf --create
if [ -f %{_unitdir}/pass.service ]; then
- systemctl | grep pass.service | awk '{if ($3 == "active" && $4 == "running") system("systemctl restart pass.service")}'
+ systemctl try-restart pass.service
fi
%postun
/sbin/ldconfig
if [ -f %{_unitdir}/pass.service ]; then
- systemctl | grep pass.service | awk '{if ($3 == "active" && $4 == "running") system("systemctl restart pass.service")}'
+ systemctl try-restart pass.service
fi
%files