[Debian-ha-maintainers] Bug#807428: Bug#807428: csync2: socket activation and running as system user

Christoph Berg myon at debian.org
Tue Jun 21 20:12:02 UTC 2016


Re: Dhionel Díaz 2016-06-21 <0c44f8f5-4d46-60e7-2bc3-d1695686953a at cenditel.gob.ve>
> > What about depending on inetd | systemd-sysv and invoking update-inetd
> > only if systemd is not running?

Doesn't that fail if the system is switched to/from systemd after the
package was already installed?

> > Don't forget to depend on update-inetd as well.
> > 
> Looks reasonable, in the following days I'll be sending a patch along
> those lines. In a brief exploration I haven't found if there is a
> recommended approach to detect systemd, do you think a test on the exit
> status of 'stat -c %N /proc/1/exe | grep systemd' would be appropriate?

The canonical test is "test -d /run/systemd/system".

Christoph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-ha-maintainers/attachments/20160621/f7d028f9/attachment.sig>


More information about the Debian-ha-maintainers mailing list