Hide output of systemctl calls
See Bug 1552971
This commit is contained in:
parent
4aa9cd4634
commit
59cb2a17ba
@ -196,7 +196,7 @@ if [ "$1" = "1" ] ; then
|
|||||||
# FIXME: what to do with this? We do not want to start it in a container/chroot
|
# FIXME: what to do with this? We do not want to start it in a container/chroot
|
||||||
# enable and start lvm2-monitor.service on completely new installation only, not on upgrades
|
# enable and start lvm2-monitor.service on completely new installation only, not on upgrades
|
||||||
systemctl enable lvm2-monitor.service
|
systemctl enable lvm2-monitor.service
|
||||||
systemctl start lvm2-monitor.service || :
|
systemctl start lvm2-monitor.service >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
%if %{enable_lvmetad}
|
%if %{enable_lvmetad}
|
||||||
%systemd_post lvm2-lvmetad.socket
|
%systemd_post lvm2-lvmetad.socket
|
||||||
@ -204,7 +204,7 @@ fi
|
|||||||
# replace direct systemctl calls with systemd rpm macro once this is provided in the macro:
|
# replace direct systemctl calls with systemd rpm macro once this is provided in the macro:
|
||||||
# http://cgit.freedesktop.org/systemd/systemd/commit/?id=57ab2eabb8f92fad5239c7d4492e9c6e23ee0678
|
# http://cgit.freedesktop.org/systemd/systemd/commit/?id=57ab2eabb8f92fad5239c7d4492e9c6e23ee0678
|
||||||
systemctl enable lvm2-lvmetad.socket
|
systemctl enable lvm2-lvmetad.socket
|
||||||
systemctl start lvm2-lvmetad.socket || :
|
systemctl start lvm2-lvmetad.socket >/dev/null 2>&1 || :
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{enable_lvmpolld}
|
%if %{enable_lvmpolld}
|
||||||
@ -213,7 +213,7 @@ systemctl start lvm2-lvmetad.socket || :
|
|||||||
# replace direct systemctl calls with systemd rpm macro once this is provided in the macro:
|
# replace direct systemctl calls with systemd rpm macro once this is provided in the macro:
|
||||||
# http://cgit.freedesktop.org/systemd/systemd/commit/?id=57ab2eabb8f92fad5239c7d4492e9c6e23ee0678
|
# http://cgit.freedesktop.org/systemd/systemd/commit/?id=57ab2eabb8f92fad5239c7d4492e9c6e23ee0678
|
||||||
systemctl enable lvm2-lvmpolld.socket
|
systemctl enable lvm2-lvmpolld.socket
|
||||||
systemctl start lvm2-lvmpolld.socket || :
|
systemctl start lvm2-lvmpolld.socket >/dev/null 2>&1 || :
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
@ -799,7 +799,7 @@ of device-mapper devices.
|
|||||||
# replace direct systemctl calls with systemd rpm macro once this is provided in the macro:
|
# replace direct systemctl calls with systemd rpm macro once this is provided in the macro:
|
||||||
# http://cgit.freedesktop.org/systemd/systemd/commit/?id=57ab2eabb8f92fad5239c7d4492e9c6e23ee0678
|
# http://cgit.freedesktop.org/systemd/systemd/commit/?id=57ab2eabb8f92fad5239c7d4492e9c6e23ee0678
|
||||||
systemctl enable dm-event.socket
|
systemctl enable dm-event.socket
|
||||||
systemctl start dm-event.socket || :
|
systemctl start dm-event.socket >/dev/null 2>&1 || :
|
||||||
if [ -e %{_default_pid_dir}/dmeventd.pid ]; then
|
if [ -e %{_default_pid_dir}/dmeventd.pid ]; then
|
||||||
%{_sbindir}/dmeventd -R || echo "Failed to restart dmeventd daemon. Please, try manual restart."
|
%{_sbindir}/dmeventd -R || echo "Failed to restart dmeventd daemon. Please, try manual restart."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user