[Pkg-systemd-maintainers] Bug#738787: systemd: Can't get complete status of xinetd when using systemd

Michael Biebl biebl at debian.org
Wed Feb 12 22:54:24 GMT 2014


Am 12.02.2014 23:39, schrieb Salvo Tomaselli:
> Package: systemd
> Version: 204-7
> Severity: wishlist
> 
> Dear Maintainer,
> 
> the xinetd init file has the following:
>> status)
>>         status_of_proc -p "$PIDFILE" "$DAEMON"
>>         R=$?
>>         if test "$R" = "0" ; then
>>             kill -10 $(cat "$PIDFILE")
>>             cat /var/run/xinetd.dump
>>         fi
>>         exit $R
> 
> which prints the status of all the active services xinetd has at the moment.
> 
> This functionality is gone with systemd. Is there a way of getting it back?
> 

If you are referring to the "cat /var/run/xinetd.dump", no there isn't.
I'm not sure what exactly xinetd.cump contains, but one possibility
could be to modify xinetd to use the sd_notify API [1]

Take avahi-daemon as an example, which uses this facility:

root at pluto:~# systemctl status avahi-daemon.service
avahi-daemon.service - Avahi mDNS/DNS-SD Stack
   Loaded: loaded (/lib/systemd/system/avahi-daemon.service; enabled)
   Active: active (running) since Wed 2014-02-12 07:36:51 CET; 16h ago
 Main PID: 756 (avahi-daemon)
   Status: "Server startup complete. Host name is pluto.local. Local
service cookie is 500095068."
   CGroup: name=systemd:/system/avahi-daemon.service
           ├─756 avahi-daemon: running [pluto.local]
           └─795 avahi-daemon: chroot helper
...


The "Status" line is information provided by the avahi-daemon process
via the sd_notify API.




[1] http://www.freedesktop.org/software/systemd/man/sd_notify.html
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20140212/a5e293df/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list