On Mon, Jun 27, 2011 at 06:23:23PM +0200, Lennart Poettering <[email protected]> wrote: > On Mon, 27.06.11 17:37, Ludwig Nussel ([email protected]) wrote: > > > Frederic Crozat wrote: > > > [...] > > > %service_add_enabled() > > > if [ "$1" -eq 1 ] ; then > > > # Initial installation > > > /bin/systemctl enable %{1}.service >/dev/null 2>&1 || : > > > fi > > > > Does this have an advantage over installing the symlink at build > > time already and including the symlink in %files instead? > > It doesnt right now. But it might eventually: it might be useful to send > out notification events via the bus when a new service is enabled, to > allow live views in UIs.
If the symlink would be part of the package, then a regular package upgrade would re-enable the service which might have been disabled by the user in the meantime. Doesn't this sound like an advantage right now?
pgpVbblkPCmZ4.pgp
Description: PGP signature
_______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
