| 314 | === Software Requirements === |
| 315 | |
| 316 | * [http://www.ubuntu.com/ Linux PC (Ubuntu)] |
| 317 | * g++, make |
| 318 | * libboost-dev, libboost-filesystem-dev or directly from [http://www.boost.org/users/download/ site] (minimum recommended version 1.44; in the boost folder: ./bootstrap.sh; ./bjam install) |
| 319 | |
| 320 | === Project Organization === |
| 321 | |
| 322 | The code for self-healing service can be found in the [https://svn-batch.grid.pub.ro/svn/Sensei-WP5/Check-selfheal /Check-selfheal] folder in the SVN. |
| 323 | |
| 324 | * [https://svn-batch.grid.pub.ro/svn/Sensei-WP5/Check-selfheal/config.xml config.xml] sample configuration file |
| 325 | |
| 326 | === Compiling the Self-healing service === |
| 327 | |
| 328 | Some packages are required to be installed prior to the compilation of the Self-healing service, as the Boost library for C++ is used. At the time of the creation of the code, the Ubuntu repositories hold an older version of the Boost library, which does not contain the Property Tree feature. So the sources of the library should be downloaded and compiled. Download version 1.44.0 from [http://www.boost.org/users/download/ download site]. |
| 329 | |
| 330 | {{{ |
| 331 | $ tar xjf boost_1_37_0.tar.bz2 |
| 332 | $ cd boost_1_44_0 |
| 333 | $ ./bootstrap.sh |
| 334 | $ ./bjam install |
| 335 | }}} |
| 336 | |
| 337 | This will compile and completly install the Boost library, and copy the necessary header files in the /usr/local/include/ folder. Now they can be used in the code by simply: #include <boost/filesystem.hpp> |
| 338 | |
| 339 | To compile the Self-healing service, you need to go in the Check-selfheal folder and: |
| 340 | |
| 341 | {{{ |
| 342 | make |
| 343 | }}} |
| 344 | |
| 345 | To clean everything: |
| 346 | |
| 347 | {{{ |
| 348 | make clean |
| 349 | }}} |
| 350 | |
| 351 | === Running the Gateway Watchdog === |
| 352 | |
| 353 | The Self-healing service can be run by simply: |
| 354 | |
| 355 | {{{ |
| 356 | ./check-selfheal |
| 357 | }}} |
| 358 | |