1

On CoreOS 899.15.0, how do I update a previously submitted unit file via fleetctl?

I've previously submitted the unit file [email protected], but want to update it to a revised version:

$ fleetctl list-unit-files
UNIT                HASH    DSTATE      STATE       TARGET
[email protected]    76b05ae inactive    inactive    -
[email protected]              faa7a16 inactive    inactive    - 

When I try to re-submit [email protected], fleetctl only warns me that the local and registry versions of it differ:

$ fleetctl submit rethinkdb\@.service
WARNING: Unit [email protected] in registry differs from local unit file [email protected]

2 Answers 2

0

Currently, the solution is to destroy the unit files and then re-submit them.

fleetctl destroy rethinkdb\@.service
fleetctl submit rethinkdb\@.service
0

Coming up in fleet version v0.13 (not yet released, August 2016):

Support to replace units

fleetctl start --replace rethinkdb\@.service

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .