Le 09/09/2011 11:31, nap a écrit : > > > On Wed, Sep 7, 2011 at 12:10 PM, Heltem > <hel...@o2php.com > <mailto:hel...@o2php.com>> wrote: > > While trying to package Shinken for Gentoo, I am looking to understand > the workdir logic between the different modules. > > It seems to me that most of them make difference between workdir, which > is set in config file and directory for pidfile... which is a good > thing. > > Indeed, workdir can be set to something like /var/lib/shinken while > pidfile can be set in /var/run/shinken directory. > > However, the arbiter workdir seems to be deduced from the pidfile (which > is, here, called lock_file !?!) directory. And that is awful for my > logic. > > Is there something I missed ? How can I set the workdir for arbiter > separately from pidfile/lock_file directory ? > > Hi, > > Yes, the arbiter is a bit aside. In fact the lock_file came from Nagios. > But we can add a true parameter and if the value is missing, it will use > the current value so the nagios compatibility is ok :) > > > Jean
Hi, The fallback way could help tentatively. My current way was to patch the provided arbiterdaemon.py and nagios.cfg to get them using a workdir and a pidfile parameter when installation is done. But it's not a awesome nagios-compliancy way Question : what is the aim to get arbiter to know where is its pidfile ? Shouldn't be only init scripts business ? Same question for other modules ... Why not to retrieve the pidfile parameter from an init script config file which would to be passed on command line to the daemons ? Heltem ------------------------------------------------------------------------------ Why Cloud-Based Security and Archiving Make Sense Osterman Research conducted this study that outlines how and why cloud computing security and archiving is rapidly being adopted across the IT space for its ease of implementation, lower cost, and increased reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/ _______________________________________________ Shinken-devel mailing list Shinken-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shinken-devel