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

Dhionel Díaz ddiaz at cenditel.gob.ve
Tue Jun 21 18:42:07 UTC 2016


El 21/06/16 a las 02:15, Ferenc Wágner escribió:
> Dhionel Díaz <ddiaz at cenditel.gob.ve> writes:
> 
>> El 20/06/16 a las 05:57, Christoph Berg escribió:
>>
>>> Re: Dhionel Díaz 2015-12-08 <5667290F.3060300 at cenditel.gob.ve>
>>>
>>>> The attached patch was prepared to make csync2 a socket activated
>>>> service managed with systemd and avoid the use of inetd,
>>>
>>> Unfortunately I don't think we should apply it as-is for the time
>>> being, as it removes the actual inetd support, rendering csync2
>>> unusable for people running systems on sysvinit. I'm not aware of a
>>> general solution for running inetd in parallel with socket-activated
>>> services from the same package, so this will likely need to wait until
>>> such a solution is found.
>>
>> Do you think an approach similar to the one implemented for saned
>> would be appropriate?
>>
>> In that way the sysadmin would be able to switch between inetd and
>> systemd support with just a few commands and inetd could also be
>> selected in the postinst to preserve the current behaviour.
> 
> What about depending on inetd | systemd-sysv and invoking update-inetd
> only if systemd is not running?
> 
> 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?

-- 
Dhionel Díaz
Centro Nacional de Desarrollo e Investigación en Tecnologías Libres
Ministerio del Poder Popular para
Educación Universitaria, Ciencia y Tecnología

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


More information about the Debian-ha-maintainers mailing list