2011/4/18 nap <napar...@gmail.com>
> Hi,
>
> We are looking with David about package creation. One think that look to be
> a problem is the "more than one init.d script". In fact, there is two ways
> for start daemons, the direct /etc/init.d/shinken-poller or with
> /etc/init.d/shinken way.
>
> But it's a huge problem for packagers, and quality checks just don't pass
> with it.
>
> So we are thinking about another way, more simple and efficient (we hope) :
> * only one init.d script for all daemons, the /etc/init.d/shinken one.
> * a common /etc/defaults/shinken file taht give all global parameters like
> path.
>
* a /etc/defaults file for each daemons. with specific parameters, and a
> "enable-poller=1" parameter too
>
seems like it's the good idea to me. we are actually effectively missing
this init "feature" .. that will permit to more easily handle this case.
With this, it will still be easy to :
> * setup a simple shinken for a beginer (one init.d script is enougth :) )
>
don't we want something like this for packages :
package "shinken-common" : the shinken python package itself. with
common files, like /etc/default/shinken & /etc/init.d/shinken
package "shinken-arbiter" : just add the /etc/default/shinken-arbiter &
init "dedicated" script (/etc/init.d/shinken-arbiter) & concerned "bin"
script : "(shinken)/bin/shinken-arbiter".
same for the others daemons:
shinken-scheduler : .. /etc/default/shinken-scheduler &
/etc/init.d/shinken-scheduler & "(shinken)/bin/shinken-scheduler"
and so on..
and finally : (meta-)package "shinken-all" (or just "shinken") : would
contain no file but only depend on all the packages "shinken-common",
"shinken-arbiter", "shinken-scheduler", ...)
if you install "shinken" (or "shinken-all") then you still have the
possibility as you describe to disable some of the daemon with their
dedicated /etc/defaults/shinken-* file ..
or am I seeing something wrong
?
* setup distributed daemon. Just install the package you want, and if you
> install too much, disable what you do not want.
>
> It just need a cutting pass for the defaults/shinken file (keep global
> parameters, and put all other parameter in daemon specific files) and add a
> "look at what is enabled in the defaults files" pass in the init.d script.
>
> Then we will be good for deleting old init.d/shinken-* scripts :)
>
> So, good idea or not?
>
>
> Jean
>
>
> ------------------------------------------------------------------------------
> Benefiting from Server Virtualization: Beyond Initial Workload
> Consolidation -- Increasing the use of server virtualization is a top
> priority.Virtualization can reduce costs, simplify management, and improve
> application availability and disaster protection. Learn more about boosting
> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
> _______________________________________________
> Shinken-devel mailing list
> Shinken-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/shinken-devel
>
>
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Shinken-devel mailing list
Shinken-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shinken-devel