Skip to content

Commit

Permalink
chkconfig in RPM server scriptlets
Browse files Browse the repository at this point in the history
chkconfig --add and --del [might] invoke /sbin/insserv
and even if chkconfig exists, insserv might not (SLES15).

Ignore chkconfig --del errors - it's a "best effort" cleanup anyway
  • Loading branch information
vuvova committed Sep 27, 2019
1 parent 1442173 commit 677cc64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support-files/rpm/server-preun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [ $1 = 0 ] ; then
%{_sysconfdir}/init.d/mysql stop > /dev/null
fi
if [ -x /sbin/chkconfig ] ; then
/sbin/chkconfig --del mysql > /dev/null 2>&1
/sbin/chkconfig --del mysql > /dev/null 2>&1 || :
fi
fi

Expand Down

0 comments on commit 677cc64

Please sign in to comment.