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
Hi all,
you need the DMNOPTS when stopping/restarting, or it fails if you force the hostname.
(patch attached)
-- Charles Goyard - cgoyard at cvf.fr - (+33) 1 45 38 01 31
Charles Goyard wrote:
Hi all,
you need the DMNOPTS when stopping/restarting, or it fails if you force the hostname.
(patch attached)
Hum, My patch was not removing it from the original file, unless I'm wrong (the patch was im 2 hunks)
Thanks for the review anyway ;)
Cheers, Gildas
participants (2)
-
cgoyard@cvf.fr
-
gn1@sanger.ac.uk