Skip to content

Commit

Permalink
gracefully handle systemctl
Browse files Browse the repository at this point in the history
  • Loading branch information
jancajthaml committed Aug 22, 2019
1 parent 6500bff commit d178e20
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packaging/debian_amd64/DEBIAN/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ case "$1" in

upgrade|deconfigure)
if [ ${SYSTEMD_AVAIL} ] ; then
systemctl stop bondster-bco 2> /dev/null || :
(systemctl stop bondster-bco 2> /dev/null || :)
fi
;;

Expand Down
2 changes: 1 addition & 1 deletion packaging/debian_arm64/DEBIAN/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ case "$1" in

upgrade|deconfigure)
if [ ${SYSTEMD_AVAIL} ] ; then
systemctl stop bondster-bco 2> /dev/null || :
(systemctl stop bondster-bco 2> /dev/null || :)
fi
;;

Expand Down
2 changes: 1 addition & 1 deletion packaging/debian_armhf/DEBIAN/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ case "$1" in

upgrade|deconfigure)
if [ ${SYSTEMD_AVAIL} ] ; then
systemctl stop bondster-bco 2> /dev/null || :
(systemctl stop bondster-bco 2> /dev/null || :)
fi
;;

Expand Down

0 comments on commit d178e20

Please sign in to comment.