9 chdir $dir || die "can't chdir into $dir";
11 $SIG{__WARN__} = sub { print STDERR @_ if $ENV{DEBUG} };
13 my $driver = Gearman::Driver->new(
14 namespaces => [qw(APKPM)],
15 configfile => 'config.yaml',
17 logfile => 'log/gearman.log',
18 server => $ENV{GEARMAN} || 'localhost:4730',
20 job_runtime_attributes => {
21 'APKPM::CPE::poll' => {
25 'APKPM::CPE::info' => {
29 'APKPM::Ping::ping' => {
33 'APKPM::Store::insert' => {
38 'APKPM::DSLAM::search' => {
42 'APKPM::CRM::search' => {
49 open(my $pid, '>', '/tmp/apkpm.driver.pid');