HomePhorge

Upstart code cleanup, init provider improvement
0cab9ee92af1Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Upstart code cleanup, init provider improvement

This commit adds an is_init? function to the init provider, to prevent the init
provider from handling upstart jobs redundantly (which happens with services
such as network-interface and network-interface-security). It also adds tests
for the exlusion of instances in the upstart provider and exclusion of upstart
services from the init instances. It also cleans up some upstart provider code
(self.instances, self.search), eliminating redundant code and refactoring some
methods (upstart_status, status, normal_status).
This also removes the custom status command from upstart, which almost
certainly wasn't doing what it was expected. The upstart status command is
effective at gauging the status of upstart services.

Details

Provenance
Matthaus Litteken <matthaus@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU91628be3f425: Add spec test for network-interface-security
Branches
Unknown
Tags
Unknown

Event Timeline

Matthaus Litteken <matthaus@puppetlabs.com> committed rPU0cab9ee92af1: Upstart code cleanup, init provider improvement (authored by Matthaus Litteken <matthaus@puppetlabs.com>).Jun 16 2012, 12:29 AM