diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-02-29 23:10:44 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-02-29 23:10:44 -0500 |
commit | 2a73e674605916077cf6a87410f4ad0829938400 (patch) | |
tree | 6c8b759158928124349b5bbefcac80c5b51e1295 /systemd/cloud-init.target | |
parent | 316bdf523b01241036335b27a0afd89f6d3207c2 (diff) | |
download | vyos-cloud-init-2a73e674605916077cf6a87410f4ad0829938400.tar.gz vyos-cloud-init-2a73e674605916077cf6a87410f4ad0829938400.zip |
add cloud-init.target, update service files accordingly
This adds cloud-init.target which is a single target to
encompass all the services of cloud-init.
Diffstat (limited to 'systemd/cloud-init.target')
-rw-r--r-- | systemd/cloud-init.target | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/systemd/cloud-init.target b/systemd/cloud-init.target new file mode 100644 index 00000000..03f61002 --- /dev/null +++ b/systemd/cloud-init.target @@ -0,0 +1,16 @@ +# cloud-init target is enabled by cloud-init-generator +# To disable it you can either: +# a.) boot with kernel cmdline of 'cloudinit=disabled' +# b.) touch a file /etc/cloud/cloud-init.disabled +# cloud-init normally emits a "cloud-config" upstart event to inform third +# parties that cloud-config is available, which does us no good when we're +# using systemd. cloud-config.target serves as this synchronization point +# instead. Services that would "start on cloud-config" with upstart can +# instead use "After=cloud-config.target" and "Wants=cloud-config.target" +# as appropriate. + +[Unit] +Description=Cloud-init target +Wants=cloud-init-local.service cloud-init.service +After=cloud-init-local.service cloud-init.service + |