X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=blobdiff_plain;f=lib%2FGruntmaster%2FDaemon.pm;h=1d1ca01f9544c895168dd27e7ed356c3af2cebaf;hp=a84fc57cfeb3dff949f0eef1ac3c02cf03240b29;hb=fdb99417bb13ca0418a5ec8d9e240e29565225c4;hpb=7be8c37d42b6782bc5d94ea4e52dd1261ce6e3ae diff --git a/lib/Gruntmaster/Daemon.pm b/lib/Gruntmaster/Daemon.pm index a84fc57..1d1ca01 100644 --- a/lib/Gruntmaster/Daemon.pm +++ b/lib/Gruntmaster/Daemon.pm @@ -7,7 +7,7 @@ use warnings; our $VERSION = '5999.000_004'; use Gruntmaster::Daemon::Constants qw/ERR/; -use Gruntmaster::Daemon::Format qw/prepare_files/; +use Gruntmaster::Daemon::Format qw/prepare_files stopvms/; use File::Basename qw/fileparse/; use File::Temp qw/tempdir/; @@ -127,6 +127,7 @@ sub process{ $meta->{result} = -1; $meta->{result_text} = $_; }; + stopvms; get_logger->info("Job result: " . $meta->{result_text}); return unless $jobr; @@ -169,6 +170,7 @@ sub got_job{ } sub run{ + warn "No GRUNTMASTER_VM environment variable. Running without a VM is a security risk.\n" unless $ENV{GRUNTMASTER_VM}; require Gruntmaster::Data; $db = Gruntmaster::Data->connect('dbi:Pg:'); Log::Log4perl->init('/etc/gruntmasterd/gruntmasterd-log.conf');