Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian uses systemd not upstart #6

Open
micah opened this issue Jun 29, 2018 · 0 comments
Open

Debian uses systemd not upstart #6

micah opened this issue Jun 29, 2018 · 0 comments

Comments

@micah
Copy link

micah commented Jun 29, 2018

On Debian, the knot package uses systemd unit files. However in the icann-dns/puppet-knot module you are using upstart methods for making sure that knot is running properly:

  if $::kernel == 'Linux' {
    file{'/etc/init/knot.conf':
      ensure  => present,
      content => template('knot/etc/init/knot.conf.erb'),
      require => Package[$package_name],
      notify  => Service[$service_name];
    }

Debian 7 had some support for upstart, but it never fully did, it would be better to use systemd for this, at least in Debian. In fact Ondřej Surý wrote on the knot list this very fact: https://lists.nic.cz/pipermail/knot-dns-users/2014-July/000483.html

It would be simple to just stop shipping this upstart config, and switch the knot::params:: $restart_cmd to be:

$restart_cmd = "${knotc_bin} reload || ${knotc_bin} ${knotc_arg} && systemctl restart knot"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant