Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for a daemon's restart-condition #361

Conversation

sergiusens
Copy link
Collaborator

Just makes it valid syntax in snapcraft.yaml

Signed-off-by: Sergio Schvezov sergio.schvezov@ubuntu.com

@sergiusens
Copy link
Collaborator Author

retest this please

restart-condition:
type: string
enum:
- never
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be "no"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The policy, as for daemon is to bring in the exact systemd names

Copy link
Contributor

Choose a reason for hiding this comment

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

Which at least according to this is "no," not "never." Right? Or am I reading something wrong?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I grabbed them from here https://github.com/ubuntu-core/snappy/blob/master/docs/meta.md
So more research is in order

@kyrofa
Copy link
Contributor

kyrofa commented Mar 2, 2016

Couple minor comments, but looks good 👍

@sergiusens sergiusens force-pushed the feature/1552160/support-restart-condition branch from f0e8211 to 7ddcf28 Compare March 3, 2016 16:21
Just makes it valid syntax in snapcraft.yaml

Signed-off-by: Sergio Schvezov <sergio.schvezov@ubuntu.com>
@sergiusens sergiusens force-pushed the feature/1552160/support-restart-condition branch from 7ddcf28 to 85384d3 Compare March 3, 2016 16:26
- on-failure
- on-abnormal
- on-abort
- always
Copy link
Contributor

Choose a reason for hiding this comment

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

Completely removing the "no?"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes for now snapcore/snapd#567

sergiusens added a commit that referenced this pull request Mar 3, 2016
…rt-condition

Support for a daemon's restart-condition
@sergiusens sergiusens merged commit 5073c61 into canonical:master Mar 3, 2016
@sergiusens sergiusens deleted the feature/1552160/support-restart-condition branch March 3, 2016 18:46
kalikiana pushed a commit to kalikiana/snapcraft that referenced this pull request Apr 6, 2017
…ort-restart-condition

Support for a daemon's restart-condition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants