| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | use II::Develop; | ||
| 4 | package SyslogScanD; | ||
| 5 | |||
| 6 | use strict; | ||
| 7 | use warnings; | ||
| 8 | use SyslogScan::Daemon; | ||
| 9 | use File::Basename; | ||
| 10 | |||
| 11 | our @ISA = qw(SyslogScan::Daemon); | ||
| 12 | |||
| 13 | my $progname = basename($0); | ||
| 14 | |||
| 15 | newdaemon( | ||
| 16 | progname => $progname, | ||
| 17 | pidfile => "/var/run/$progname.pid", | ||
| 18 | configfile => "/etc/$progname.conf", | ||
| 19 | ); | ||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | =head1 NAME | ||
| 24 | |||
| 25 | syslogscand - daemon to watch log files | ||
| 26 | |||
| 27 | =head1 SYNOPSIS | ||
| 28 | |||
| 29 | syslogscand [ -c file ] [ -f ] { start | stop | reload | restart | help | version | check } | ||
| 30 | |||
| 31 | =head1 DESCRIPTION | ||
| 32 | |||
| 33 | Syslogscand is a wapper for L<SyslogScan::Daemon>. It watches log files. | ||
| 34 | Which log files it watches and what it does is defined by the plugins that | ||
| 35 | are configured in its configuration file. | ||
| 36 | |||
| 37 | =head1 FILES | ||
| 38 | |||
| 39 | =over 25 | ||
| 40 | |||
| 41 | =item /etc/syslogscand.conf | ||
| 42 | |||
| 43 | The configuration file | ||
| 44 | |||
| 45 | =item /var/run/syslogscand.pid | ||
| 46 | |||
| 47 | The process ID file -- also use to make sure there is only one syslogscand running. | ||
| 48 | |||
| 49 | =back | ||
| 50 | |||
| 51 | =head1 SEE ALSO | ||
| 52 | |||
| 53 | L<SyslogScan::Daemon> | ||
| 54 |