2006-11-20 00:00:08 +01:00
|
|
|
#!/usr/bin/perl -T
|
|
|
|
use warnings;
|
|
|
|
use strict;
|
|
|
|
use Simba::CA;
|
2007-11-15 21:15:56 +01:00
|
|
|
use POSIX qw(strftime);
|
2006-11-20 00:00:08 +01:00
|
|
|
|
|
|
|
$ENV{PATH} = "/usr/bin";
|
|
|
|
|
2007-11-15 21:15:56 +01:00
|
|
|
my $now = strftime('%Y-%m-%dT%H:%M:%S', localtime());
|
|
|
|
open(my $log, '>>', '/var/log/simba/ca.log.' . $now);
|
2007-06-18 03:00:29 +02:00
|
|
|
$log->autoflush(1);
|
2007-06-18 21:42:08 +02:00
|
|
|
|
|
|
|
my $ca = Simba::CA->new({
|
|
|
|
dbi_file => $ENV{SIMBA_DB_CONN} || "$ENV{HOME}/.dbi/simba",
|
|
|
|
fh_log => $log,
|
|
|
|
});
|
2006-11-20 00:00:08 +01:00
|
|
|
|
|
|
|
$ca->run();
|