[Pkg-systemd-maintainers] Bug#732157: Bug#732157: Notification in non-C programs

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Wed Dec 18 03:41:48 GMT 2013


On Tue, Dec 17, 2013 at 06:51:19PM -0800, Nikolaus Rath wrote:
> A nice thing about the SIGSTOP mechanism is that it can trivially be
> used even in programs not written in C. Any Perl or Python script (and
> there are plenty of daemons written in these languages) can send itself
> SIGSTOP. Using sd_notify requires to re-implement the protocol or to add
> C adaptor code just for this...
The adaptor is there for some languages [1]. I have only used Python,
where it is trivially easy
   from systemd import daemon
   daemon.notify('READY=1')

Zbyszek

[1] http://www.freedesktop.org/wiki/Software/systemd/#relatedpackages




More information about the Pkg-systemd-maintainers mailing list