El 21/06/16 a las 02:15, Ferenc Wágner escribió: > Dhionel Díaz <dd...@cenditel.gob.ve> writes: > >> El 20/06/16 a las 05:57, Christoph Berg escribió: >> >>> Re: Dhionel Díaz 2015-12-08 <5667290f.3060...@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
signature.asc
Description: OpenPGP digital signature