Modify

Ticket #998 (closed enhancement: invalid)

Opened 11 years ago

Last modified 11 years ago

Reloading services on Debian systems

Reported by: Arto Jantunen <viiru@…> Owned by: desai
Priority: minor Milestone: Bcfg2 1.2.0 Release
Component: bcfg2-client Version: 1.0
Keywords: Cc:

Description

Currently on a Debian system the bcfg2 client reloads a service by calling /etc/init.d/<service> restart, when in many cases a reload would be enough. The Debian Policy does not define the reload action, so it may or may not exist, depending on package. However the Policy does guarantee the existance of the force-reload action. In packages that can reload themselves without restarting force-reload does a reload, and in packages that cannot it does a restart. In my understanding that makes force-reload the correct action for bcfg2 to take for reloading services on Debian systems.

I would submit a patch for this, but I'm not entirely sure what is the correct way to implement it. Simply always replacing restart with force-reload in src/lib/Client/Tools/DebInit.py may not be the correct solution since in some cases a real restart may be required and doing that would prevent forcing restarts where needed.

This issue was filed as bug #406288 in the Debian BTS, see http://bugs.debian.org/406288

Attachments

Change History

comment:1 Changed 11 years ago by solj

  • Status changed from new to closed
  • Resolution set to invalid

This is a very old bug. The 'restart' attribute is just the default, it can easily be changed via the 'target' attribute. Please see http://docs.bcfg2.org/server/plugins/generators/rules.html#service-tag for more details.

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.