[systemd-devel] RFC: creating a set of systemd RPM macros across distributions ?
Miklos Vajna
vmiklos at frugalware.org
Tue Jun 28 03:32:32 PDT 2011
On Mon, Jun 27, 2011 at 06:23:23PM +0200, Lennart Poettering <lennart at poettering.net> wrote:
> 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.
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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20110628/d84371f6/attachment.pgp>
More information about the systemd-devel
mailing list