Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

Conversation

@yifan-gu
Copy link
Contributor

ExecStartPre=/usr/bin/rkt fetch myapp.com/myapp-1.3.4
# Start the app
ExecStart=/usr/bin/rkt run --inherit-env --port=http:8888 myapp.com/myapp-1.3.4
ExecStop=/usr/bin/rkt gc --mark-only
Copy link
Member

Choose a reason for hiding this comment

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

Does it really work? According to the documentation, ExecStop is executed to stop the service (when the user runs systemctl stop ...), not after the rkt command terminates.
https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStop=

ExecStopPost could work instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alban That's a better idea. Thank you.

@jonboulle jonboulle modified the milestones: v1.6.0, v1.5.0 Apr 26, 2016
@jonboulle jonboulle merged commit d4c6c8e into rkt:master Apr 26, 2016
@yifan-gu yifan-gu deleted the rkt_doc branch April 26, 2016 17:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants