Le lundi 27 juin 2011 à 14:38 +0200, Lennart Poettering a écrit : > On Mon, 27.06.11 14:34, Frederic Crozat (fcro...@suse.com) wrote: > > > > > %service_add_enabled() > > > > if [ "$1" -eq 1 ] ; then > > > > # Initial installation > > > > /bin/systemctl enable %{1}.service >/dev/null 2>&1 || : > > > > fi > > > > > > I'd strongly advise against this. Units might install more than one > > > service, and other units instead of services (example: sshd might just > > > enable a socket by default, but not a service). Hence we should not > > > appaned .service but leave it to the package to specifiy the full name > > > and we also need to make sure packagers can specify multiple unit files > > > at once. > > > > This question was also spotted on opensuse-packaging and we thought it > > should be discussed here :) > > > > So, usage would become : > > > > %post > > %service_add ssh.socket > > > > %post > > %service_add_enabled foobar.service > > > > ? > > Well, and maybe even this: > > %service_add waldi.socket wuffwuff.service piepapo.service > > i.e. allow multiple unit names to be specified at once.
It shouldn't be a problem, I just need to refresh my rpm macro kung-fu ;) -- Frederic Crozat <fcro...@suse.com> SUSE _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel