Le lundi 28 novembre 2011 à 19:30 +0100, Wolfgang Rosenauer a écrit :
Am 28.11.2011 17:27, schrieb Frederic Crozat:
Le dimanche 20 novembre 2011 à 22:32 +0100, Wolfgang Rosenauer a écrit :
Hi,
I might have missed important systemd information during the 12.1 development phase but haven't had to deal with it for my packages up to now. A recent package update now introduced systemd services and I found it's not obvious to me what to do. It already starts with trivial questions where I have an my own understanding but not absolutely sure.
First things first, you should read :
http://en.opensuse.org/openSUSE:Systemd_packaging_guidelines
Does it actually looks like I didn't? That's obviously what I did before but it doesn't answer any of my questions directly.
I don't know, I'm not behind you, looking at your screen ;) And other people might not have looked at this page, reminding everybody can't be wrong.
The daemon is currently started by default when installed. What happens after the update to the new version which includes systemd files? Will it be enabled by default? (I've actually tried the update and the service was running afterwards so I guess it will be enabled in update case but not for a fresh installation?)
No it won't be enabled by default. If you really want that, you need to open a sr against systemd-presets-branding-openSUSE (see http://en.opensuse.org/openSUSE:Systemd_packaging_guidelines#Enabling_servic... )
You didn't answer to my concern about updates from backports or things like Tumbleweed. I cannot enable a service from a package?
You should not (the policy is to use presets from systemd-presets-branding-openSUSE). But if you do (by adding systemctl enable in %post), we won't come and kill you (at least, for now).
I guess I can just call systemctl? Sorry, but this needs another solution. What about third party packages? They are never allowed to register themselves as a service automatically?
They can drop a file in /lib/systemd/system.preset to change policy for their package. Again, we are trying to come to cross-distribution rules. -- Frederic Crozat <fcrozat@suse.com> SUSE -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org