F18 => F19 update adventures

Honza Horak hhorak at redhat.com
Mon Jun 10 11:21:06 UTC 2013


On 06/08/2013 04:38 AM, Adam Williamson wrote:
> On Fri, 2013-06-07 at 21:53 +0200, MichaƂ Piotrowski wrote:
>> That was simple...
>>
>> sudo systemctl enable mysqld.service
>> ln -s '/usr/lib/systemd/system/mysqld.service'
>> '/etc/systemd/system/multi-user.target.wants/mysqld.service'
>>
>>
>> But why update removed this service from multi-user.target.wants?
>
> Bad scriptlets, I guess? I'll see if I can reproduce.

Thanks for reporting this. Currently, we use standard systemd macros in 
both and since package replacement is not actually an update, then 
mariadb gets to default (non-enabled) status the same like after the 
first install.

What we could do is to add a %triggerun scriptlet that would create a 
file in /tmp as an indication that mysqld is enabled and then explicitly 
enable the service in mariadb %post scriptlet if such file exists.

Or do we have another less hackish way to fix that?

Cheers,
Honza


More information about the devel mailing list