HomeSoftware Heritage

Do a daemon reload for static units

Description

Do a daemon reload for static units

Services that are deployed by systemd::timer need to trigger a
systemctl daemon-reload when the .service file is changed.

systemd::timer { 'foo.timer':
  timer_content   => $foo_timer,
  service_content => $foo_service,
  active          => true,
  enable          => true,
}

results in a foo.service that is neither active nor enabled. It is
a "static" unit that will be triggered by the foo.timer alone. This
fixes #190 and more specifically:

https://github.com/voxpupuli/puppet-systemd/issues/190#issuecomment-851701455

Signed-off-by: Simon Deziel <simon@sdeziel.info>

Details

Provenance
Simon Deziel <simon@sdeziel.info>Authored on Jun 16 2021, 3:20 AM
olasdPushed on Dec 28 2021, 10:46 AM
Parents
R139:f184b624f3bb: feat(metadata): move metadata.json to Vox Pupuli
Branches
Unknown
Tags
Unknown

Event Timeline

Simon Deziel <simon@sdeziel.info> committed R139:e4907f13a85a: Do a daemon reload for static units (authored by Simon Deziel <simon@sdeziel.info>).Jun 16 2021, 3:21 AM