[Dnsmasq-discuss] systemd service improvements

Albert ARIBAUD albert.aribaud at free.fr
Thu Jun 30 21:18:57 BST 2016


Bonjour,

Le Thu, 30 Jun 2016 21:18:02 +0200
Pali Rohár <pali.rohar at gmail.com> a écrit:

> On Thursday 30 June 2016 16:58:56 Craig Andrews wrote:
> > I'd like to propose a couple changes in terms of systemd in dnsmaq.
> > First, dnsmasq should always install a systemd unit so all
> > distributions/users can use it  
> 
> I'm against such change. Why on the Earth install useless files into 
> system which do nothing? I really do not want to see that programs 
> starts installing systemd files just because it is "no harm".
> 
> If such thing happen, dnsmasq then should install also config file
> for upstart, also for openrc, and also install shortcut for Windows
> start menu for *all* systems as that is too by that definition "no
> harm".

I tend to agree with the principle that a systemd unit file should
only be installed on systems which use systemd. I was surprised indeed
to see that the dnsmasq git repo contains such a file.

Furthermore, the OP itself indicates that different systemd-based
distributions will require different systemd units for dnsmasq, which
shows that systemd (or upstart, or sysvinit...) files should be managed
at the distribution, not upstream application, level.

Amicalement,
-- 
Albert.



More information about the Dnsmasq-discuss mailing list