Ticket #998 (closed enhancement: invalid)
Reloading services on Debian systems
Reported by: | Arto Jantunen <[email protected]…> | 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
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.