Modify

Ticket #979 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

Allow services that are both supervised and custom

Reported by: https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc Owned by: https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc
Priority: major Milestone: Bcfg2 1.2.0 Release
Component: bcfg2-client Version: 1.0
Keywords: Cc:

Description

It is not possible to set a Service to both "supervised" and "custom" mode, so you cannot create a Service that gets started by Bcfg2 _and_ has a custom restart command. Without this possibility, adding a new service with a custom restart requires a full restart of the machines to which the service was added (or other manual intervention).

Another (admittedly rare) use case is a service that you want to be automatically started, but never restarted, even when the bundle is modified. This effect could be obtained by supervising the service and setting target="status" (or similar), but that doesn't work either.

Basically, having to choose between "custom" and "supervised" works fine for services that can be chkconfig'd on during Kickstart (or the equivalent for your OS of choice), but not for services added later. It should be possible to set _both_ a custom restart target _and_ supervised mode. I've attached a patch that obtains this by simply checking for the "target" attribute, since that should by itself be sufficient to designate a custom restart command.

Attachments

custom-mode.patch (1.1 KB) - added by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc 11 years ago.

Change History

Changed 11 years ago by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc

comment:1 Changed 11 years ago by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc

comment:2 Changed 11 years ago by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc

  • Owner changed from desai to https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc
  • Status changed from new to accepted

comment:3 Changed 11 years ago by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc

  • Status changed from accepted to closed
  • Resolution set to fixed

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.