Xymon Mailing List Archive search

[patch] debian hobbit client init script

list Gildas le Nadan
Mon, 20 Nov 2006 15:22:39 +0000
Message-Id: <user-a0e96afa9aa5@xymon.invalid>

Hi,

As I said earlier we want the hobbit client script to remove the 
temporary files and kill the rogue processes when stopped, mainly so the 
hobbit-client installation/upgrade process through cfengine runs smoothly.

Here is a patch to the debian hobbit client init script to do the 
following actions when the hobbit client is stopped:
- remove the /var/run/hobbitclient-runtime.cfg file
- kill the unwanted vmstat processes that were left running
- remove any files owned by hobbit from /tmp

Patch may be applied on 4.2.0 with allinone patch applied, using:

  cd hobbit-4.2.0
  patch -p1 < /path/to/patch/hobbitclient_clean.patch

Comments to help polishing this solution are more than welcome!

Cheers
Gildas