Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.4.5
-
None
Description
After the fix for MDEV-10797, RPMs no longer install the init script on systems that use systemd. However, the RPM preun script still tries to erase the init script. See here:
https://github.com/MariaDB/server/blob/mariadb-10.4.5/support-files/rpm/server-preun.sh#L12
This leads to the following problem:
$ rpm -e MariaDB-server
|
error: %preun(MariaDB-server-10.4.5-1.el7.centos.x86_64) scriptlet failed, exit status 1
|
error: MariaDB-server-10.4.5-1.el7.centos.x86_64: erase failed
|
More verbose output shows:
+ '[' -x /sbin/chkconfig ']'
|
+ /sbin/chkconfig --del mysql
|
D: %preun(MariaDB-server-10.4.5-1.el7.centos.x86_64): waitpid(3107) rc 3107 status 100
|
error: %preun(MariaDB-server-10.4.5-1.el7.centos.x86_64) scriptlet failed, exit status 1
|
error: MariaDB-server-10.4.5-1.el7.centos.x86_64: erase failed
|
Attachments
Issue Links
- is caused by
-
MDEV-10797 RPM includes init script and a systemd unit
- Closed
- relates to
-
MDEV-11046 systemd loses control of running daemon after RPM upgrade
- Closed
-
MDEV-15526 SysV init service deployed file '/etc/init.d/mysql' prevents systemctl disable command to work correctly (mariadb|mysql naming support) (debian/ubuntu)
- Closed