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@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?
signature.asc
Description: OpenPGP digital signature