svccfg export should accept instance FMRIs
It would be nice if svccfg export accepted instance FMRIs, since these are what one would get and cut-and-paste from e.g. svcs(1). Currently this results in a correct but difficult to interpret error message, because the purpose of svccfg export is to export services. Since this is the converse of manifest import (manifests describe services also), it's somewhat sensible.
Reasonable behaviour here is to export the service of which the instance FMRI is a child, and issue a warning that the entire service is being exported because single-instance export is not a thing. In addition, if the instance does not actually exist but the service does, issue an additional warning to that effect. Then export the damned service anyway.
Updated by Electric Monk over 6 years ago
- Status changed from New to Closed
- % Done changed from 90 to 100
commit bfce16ba853698e8a82133cf3ddb3ff143d14289 Author: Keith M Wesolowski <firstname.lastname@example.org> Date: 2015-02-20T23:57:22.000Z 5627 svccfg export should accept instance FMRIs Reviewed by: Garrett D'Amore <email@example.com> Reviewed by: Dan McDonald <firstname.lastname@example.org> Reviewed by: Igor Kozhukhov <email@example.com> Approved by: Richard Lowe <firstname.lastname@example.org>