From Bugzilla Helper: User-Agent: Mozilla/5.0 Galeon/1.2.9 (X11; Linux i686; U;) Gecko/20030314 Description of problem: /etc/rc.d/init.d/mysqld needs to be considered a config file in the rpm spec file. This will prevent it from being replaced silently on update. I have to modify /etc/rc.d/init.d/mysqld to make other programs that depend on mysqld work. Version-Release number of selected component (if applicable): mysql-server-3.23.56-1.73 How reproducible: Always Steps to Reproduce: 1. Modify /etc/rc.d/init.d/mysqld 2. Upgrade to a newer version of mysql-server 3. Look at /etc/rc.d/init.d/mysqld Actual Results: It has been replaced and modifications are missing Expected Results: It hasn't been replaced, modifications are still intact, and there is a /etc/rc.d/init.d/mysqld.rpmnew Additional info:
This is really working as designed. The init script is something that we control for that particular version of the package. It could contain modifications/additions that are not in your existing mysqld init script. Running your updated version with the old init script could cause problems. The other database that we support, PostgreSQL, handles the init script in the same fashion.
I disagree when there is no way to do things that depend on a service other than putting in the init.d script. An alternative would be to have a set location that the init.d script would check for and call it if it was there. If you won't rethink you view, then highly consider this method. It fits within RedHat's style of /etc/xinetd.d, /etc/pam.d, /etc/cron.d, /etc/profile.d, etc.