Usage of wildcards in systemd RPM scriptlets broken on fedora >= 31?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everybody,

To provide a bit of context: Syncthing ships unit files for both
system services and user services, where the system service can be
instantiated with the $USER the service should run as. The user
service obviously doesn't need this argument, but will only run when
the user is logged in.

In the syncthing.spec file, I have the following scriptlets for
correctly handling the syncthing service:

%post
%systemd_post 'syncthing@*.service'
%systemd_user_post syncthing.service

%preun
%systemd_preun 'syncthing@*.service'
%systemd_user_preun syncthing.service

%postun
%systemd_postun_with_restart 'syncthing@*.service'
%systemd_user_postun_with_restart syncthing.service

The variants for restarting all instances of the system service work
up to fedora 30, and successfully restart the syncthing service when
the packages is upgraded (as far as I can tell).

I now got a but report that this scriptlet no longer works on fedora
>= 31, and it throws this error:

"Invalid unit name "syncthing@*.service" was escaped as
"syncthing@\x2a.service" (maybe you should use systemd-escape?)"

See: https://bugzilla.redhat.com/show_bug.cgi?id=1756395

It looks like systemd changed its behavior wrt. using wildcards for
instances of services.

Does somebody know how to fix this? Doing some Google-fu didn't help me.

Thanks,
Fabio
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux