Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Address unit enabling issues #72

Merged
merged 3 commits into from Apr 17, 2014
Merged

Conversation

bcwaldon
Copy link
Contributor

Fix #71

Fix #69

@@ -87,6 +87,7 @@ Arbitrary systemd units may be provided in the `coreos.units` attribute.

- **name**: String representing unit's name. Required.
- **runtime**: Boolean indicating whether or not to persist the unit across reboots. This is analagous to the `--runtime` argument to `systemd enable`. Default value is false.
- **enable**: Boolean indicating whether or not to enable the given unit. Default value is false.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain what enabling a unit gets you? (Starts after reboot, right?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's one effect enabling a unit can have, but that's not the only thing. It essentially takes the [Install] section of your unit and handles each of the directives you define.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps refer to [Install] in the description? enable vs start and what [Install] can do tends to not be obvious to people new to systemd so some hint would be useful.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a note

@bcwaldon
Copy link
Contributor Author

@marineam This feature is just for you ❤️

@marineam
Copy link
Contributor

LGTM

Fix #69 - A user may provide an `enable` attribute of a unit in their
cloud config document. If true, coreos-cloudinit will instruct systemd
to enable the associated unit. If false, the unit will not be enabled.

Fix #71 - The default enable behavior has been changed from on to off.
@philips
Copy link
Contributor

philips commented Apr 17, 2014

lgtm

bcwaldon added a commit that referenced this pull request Apr 17, 2014
Address unit enabling issues
@bcwaldon bcwaldon merged commit eb51a89 into coreos:master Apr 17, 2014
@bcwaldon bcwaldon deleted the unit-enable branch April 17, 2014 16:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants