LibreCat::Daemon - base class for librecat daemons
package LibreCat::Cmd::mydaemon;
use parent 'LibreCat::Daemon';
sub daemon {
sub {
while (1) {
log "hard at work... ";
sleep 5;
}
};
1;
librecat mydaemon start --workers 10 --supervise
librecat mydaemon stop --workers 10