Ticket #979 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

Allow services that are both supervised and custom

Reported by: Owned by:
Priority: major Milestone: Bcfg2 1.2.0 Release
Component: bcfg2-client Version: 1.0
Keywords: Cc:


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.


custom-mode.patch (1.1 KB) - added by 12 years ago.

Change History

Changed 12 years ago by

comment:1 Changed 12 years ago by

comment:2 Changed 12 years ago by

  • Owner changed from desai to
  • Status changed from new to accepted

comment:3 Changed 12 years ago by

  • 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.


Add a comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.