Skip to content

Commit

Permalink
Silence systemd operations during package removal.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosefr committed Nov 9, 2015
1 parent c213edf commit 66e663a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packaging/redhat/kyoto-tycoon.spec
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ if [ $1 -gt 0 ]; then # ...do nothing on upgrade.
fi

%if %{use_systemd}
/usr/bin/systemctl stop kyoto.service 2>&1
/usr/bin/systemctl stop kyoto.service >/dev/null 2>&1
%else
/sbin/service kyoto stop >/dev/null 2>&1
%endif
/usr/bin/pkill -KILL -U kyoto || /bin/true
%if %{use_systemd}
/usr/bin/systemctl disable kyoto.service 2>&1
/usr/bin/systemctl disable kyoto.service >/dev/null 2>&1
%else
/sbin/chkconfig --del kyoto
%endif
Expand Down

0 comments on commit 66e663a

Please sign in to comment.