diff options
author | Matthew Heon <matthew.heon@pm.me> | 2020-03-09 13:06:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-09 13:06:53 -0400 |
commit | 342d99fbc2a990dcd4c122b45a8bb1a14059a338 (patch) | |
tree | 8db5e86db5bfdc7d4da844a301bfa8180ac5baa9 /pkg | |
parent | 6b3f447c8ec8ac385160234308d7fdeaf6b127e6 (diff) | |
parent | 3c473681e39b8344f3f11fe73b09d8657bdd9f52 (diff) | |
download | podman-342d99fbc2a990dcd4c122b45a8bb1a14059a338.tar.gz podman-342d99fbc2a990dcd4c122b45a8bb1a14059a338.tar.bz2 podman-342d99fbc2a990dcd4c122b45a8bb1a14059a338.zip |
Merge pull request #5427 from containers/systemd-default
generate systemd: add `default.target` to INSTALL
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/systemd/generate/systemdgen.go | 2 | ||||
-rw-r--r-- | pkg/systemd/generate/systemdgen_test.go | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/pkg/systemd/generate/systemdgen.go b/pkg/systemd/generate/systemdgen.go index 00ddc63f3..4410e1395 100644 --- a/pkg/systemd/generate/systemdgen.go +++ b/pkg/systemd/generate/systemdgen.go @@ -110,7 +110,7 @@ KillMode=none Type=forking [Install] -WantedBy=multi-user.target` +WantedBy=multi-user.target default.target` // Options include different options to control the unit file generation. type Options struct { diff --git a/pkg/systemd/generate/systemdgen_test.go b/pkg/systemd/generate/systemdgen_test.go index 145296ea9..3749d89ce 100644 --- a/pkg/systemd/generate/systemdgen_test.go +++ b/pkg/systemd/generate/systemdgen_test.go @@ -52,7 +52,7 @@ KillMode=none Type=forking [Install] -WantedBy=multi-user.target` +WantedBy=multi-user.target default.target` goodName := `# container-foobar.service # autogenerated by Podman CI @@ -72,7 +72,7 @@ KillMode=none Type=forking [Install] -WantedBy=multi-user.target` +WantedBy=multi-user.target default.target` goodNameBoundTo := `# container-foobar.service # autogenerated by Podman CI @@ -96,7 +96,7 @@ KillMode=none Type=forking [Install] -WantedBy=multi-user.target` +WantedBy=multi-user.target default.target` podGoodName := `# pod-123abc.service # autogenerated by Podman CI @@ -118,7 +118,7 @@ KillMode=none Type=forking [Install] -WantedBy=multi-user.target` +WantedBy=multi-user.target default.target` goodNameNew := `# jadda-jadda.service # autogenerated by Podman CI @@ -140,7 +140,7 @@ KillMode=none Type=forking [Install] -WantedBy=multi-user.target` +WantedBy=multi-user.target default.target` tests := []struct { name string |