Skip to content
Snippets Groups Projects
Commit bba0d2ce authored by Thomas Bellman's avatar Thomas Bellman
Browse files

Contain daemon_reload within unit/unit_options.

Use 'contain systemd::daemon_reload' instead of 'include' in the
systemd::unit and systemd::unit_options definitions.  This allows
users to specify their unit/unit_options resources in dependencies,
and be sure that systemd has reloaded the new units before they
try to use them.
parent a466810b
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ define systemd::unit( ...@@ -67,7 +67,7 @@ define systemd::unit(
) )
{ {
include systemd::vars include systemd::vars
include systemd::daemon_reload contain systemd::daemon_reload
if ($name !~ /^([^\/.]+)\.([^\/.]+)$/) if ($name !~ /^([^\/.]+)\.([^\/.]+)$/)
{ {
......
...@@ -58,7 +58,7 @@ define systemd::unit_options( ...@@ -58,7 +58,7 @@ define systemd::unit_options(
) )
{ {
include systemd::vars include systemd::vars
include systemd::daemon_reload contain systemd::daemon_reload
if ($name =~ /^([^\/.]+)\.([^\/.]+)\/(.+)$/) { if ($name =~ /^([^\/.]+)\.([^\/.]+)\/(.+)$/) {
$unitname = $1 $unitname = $1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment