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
|
||||
# enable and start lvm2-monitor.service on completely new installation only, not on upgrades
|
||||
systemctl enable lvm2-monitor.service
|
||||
systemctl start lvm2-monitor.service || :
|
||||
systemctl start lvm2-monitor.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
%if %{enable_lvmetad}
|
||||
%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:
|
||||
# http://cgit.freedesktop.org/systemd/systemd/commit/?id=57ab2eabb8f92fad5239c7d4492e9c6e23ee0678
|
||||
systemctl enable lvm2-lvmetad.socket
|
||||
systemctl start lvm2-lvmetad.socket || :
|
||||
systemctl start lvm2-lvmetad.socket >/dev/null 2>&1 || :
|
||||
%endif
|
||||
|
||||
%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:
|
||||
# http://cgit.freedesktop.org/systemd/systemd/commit/?id=57ab2eabb8f92fad5239c7d4492e9c6e23ee0678
|
||||
systemctl enable lvm2-lvmpolld.socket
|
||||
systemctl start lvm2-lvmpolld.socket || :
|
||||
systemctl start lvm2-lvmpolld.socket >/dev/null 2>&1 || :
|
||||
%endif
|
||||
|
||||
%preun
|
||||
@ -799,7 +799,7 @@ of device-mapper devices.
|
||||
# replace direct systemctl calls with systemd rpm macro once this is provided in the macro:
|
||||
# http://cgit.freedesktop.org/systemd/systemd/commit/?id=57ab2eabb8f92fad5239c7d4492e9c6e23ee0678
|
||||
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
|
||||
%{_sbindir}/dmeventd -R || echo "Failed to restart dmeventd daemon. Please, try manual restart."
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user