Table of Contents
The IPTV-collector daemon is part of the IPTV-analyzer project.
The IPTV-collector daemon is written in Perl. To follow through on the Perl path, we use a Perl CPAN style MakeMaker setup.
The basic command to produce a makefile is:
To install this module type the following:
perl Makefile.PL make make install
To install this software/module in a controllable fashion, I recommend using 'stow'. Using stow requires the ability to install the binaries to an alternative path. Use the following commands:
perl Makefile.PL PREFIX=/usr/local/ make make install PREFIX=/usr/local/stow/iptv-collector-0.3.x
The stow part:
cd /usr/local/stow/ stow iptv-collector-0.3.x
The collector daemon is call 'iptv-collector'.
Its simply started by calling 'iptv-collector', which will automatically spawn a daemon process.
The daemon can be restarted by simple starting another 'iptv-collector' process, which will detect and kill the other daemon process. The reason this is implemented, is because we cannot allow two collector processes to operating at the same time, as they would record drop count twice into the database.
TODO: Describe the pid file perms problem
The iptv-collector daemon depends on two config files:
Example/sample config files are available under "etc" directory.
The dependencies will hopefully be detected for you when generating the makefile.
The following Debian packages are needed by the collector daemon:
(libnumber-compare-perl libtext-glob-perl libfile-find-rule-perl)
(libipc-shareable-perl liblog-dispatch-perl libparams-validate-perl)
- liblog-dispatch-perl (for email extention to Log4perl)
This software is licensed under the terms of the GNU General Public License 2.0. or newer. See <http://www.gnu.org/licenses/gpl-2.0.html></http://www.gnu.org/licenses/gpl-2.0.html>.