Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

86 lines (54 sloc) 3.007 kB
=== THANKS :) ====
First of all: THANKS for trying to make a package of Shinken :)
I try to make the useful to you. It will install the shinken
library to the classic python way (in site-package).
=== Requirements ===
You will need Python >=2.4 (for 2.4 and 2.5 you will need the multiprocessing package from too)
You will need the pyro lib too. It must already have a package. If not, take it from pypi (easy_install)
=== First install, to skip the install script ===
* Create a user account and a group for shinken on your system (not necessary if using install script)::
useradd --user-group shinken
usermod --lock shinken
In fact you can install the application by using the `` script.
No compilation is needed!
`` will install the shinken library in the python path, create the
`/etc/shinken` and `/var/lib/shinken` directory (you can change them in
the `setup.cfg` file before launching ``). You will
need the `python-setuptools` package for it. Then just run::
sudo python install --install-scripts=/usr/bin/
For this way you can launch ::
sudo python update --install-scripts=/usr/bin/
There is a script called in the source directory for this task.
It contains relative paths so it should be run from within the source dir.
Beware, it will delete all Shinken related files!
The `` installs some `init.d` scripts, let's use them::
/etc/init.d/shinken-scheduler start
/etc/init.d/shinken-poller start
/etc/init.d/shinken-reactionner start
/etc/init.d/shinken-broker start
/etc/init.d/shinken-arbiter start
=== Create the Package ===
You can change the place you want to put etc and var in the file setup_parameters.cfg. You can also change
the owner of theses dir (and ALL files in them) in this file.
But WARNING (bis): if you set a --root (example =/tmp/something) it will not update the owner of the /etc and /var directory (calling with a --root is for having all files to create a package, so you don't need changing owners).
Example when you call:
python install --root=/tmp/something --record=INSTALLED_FILES --install-scripts=/usr/bin
(no trailing / for install_scripts)
You get all files to package in the file INSTALLED_FILES (and only the /tmp/moncul is changed, so it's ok for your system ;)).
The will also generate the bin/default/shinken file that will be install in /etc/default/shinken. In it, you get
all variables used by the init.d scripts. It will generate the etc and var directory with the values you give in the setup cfg file.
With the python lib + etc + var it should be ok :)
I don't know what more you need exactly, so please ask in the mailing list at
or directly via my email:
And again: thanks a lot, a tool without package is nothing :)
Jump to Line
Something went wrong with that request. Please try again.