[Pkg-systemd-maintainers] Bug#732157: Bug#732157: Want SIGSTOP-style daemon/service readiness notification

Vincent Bernat bernat at debian.org
Sun Dec 15 13:57:10 GMT 2013


 ❦ 14 décembre 2013 23:36 CET, Michael Stapelberg <stapelberg at debian.org> :

> The text you quote speaks about a pkgconfig file. Are you familiar with
> autotools and pkgconfig in particular? pkgconfig is an elegant mechanism
> to declare a build dependency (which I also use when I’m not using
> autotools). Adding a new build dependency to a project using autotools
> with pkgconfig is _really_ simple. In case a project already declared at
> least one pkgconfig dependency, it is literally a one-line change :-).

You also need to make use of *_CFLAGS and *_LIBS variables.

The main point is that this is still a dependency and you have to handle
the fact that a user doesn't have it on its system. It will compile your
daemon without systemd support but may still use the .service file and
this won't work. Of course, you can tell him to install the dependency
or to not use systemd support, but for something as simple as telling "I
am ready", this is quite a bummer to add difficulties.

When adding systemd support to my personal pet project, I have just
reimplemented `sd_notify()` myself to avoid this dependency.
-- 
Take care to branch the right way on equality.
            - The Elements of Programming Style (Kernighan & Plauger)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20131215/6df1d177/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list