Fixes #5633: Enable systemd support in ncf

Ticket: http://www.rudder-project.org/redmine/issues/5633

To be merged in master
this generic methods looks very good and very clean to me, thank you Matthieu! :+1: