[systemd-devel] RFC: creating a set of systemd RPM macros across distributions ?

Lennart Poettering lennart at poettering.net
Mon Jun 27 09:23:23 PDT 2011


On Mon, 27.06.11 17:37, Ludwig Nussel (ludwig.nussel at suse.de) 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.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list