Changeset e60c2c75f5811a27e72ff5cf21aa5f42ab9b2d1b in xas-logmon


Ignore:
Timestamp:
12/01/15 14:54:31 (3 years ago)
Author:
Kevin L. Esteb <kevin@…>
Branches:
master
Children:
48b9b1b66d1266ce2ac2a17bb8c780e163ace344
Parents:
fc9f2f7ae2ab7d487eb96b3086ac43dfdd5a28b6
git-author:
Kevin L. Esteb <kevin@…> (12/01/15 14:54:31)
git-committer:
Kevin L. Esteb <kevin@…> (12/01/15 14:54:31)
Message:

fixing typos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/XAS/Apps/Logmon/Monitor.pm

    r71b41918e7074bbc7a6c4c165197e3709e7a086b re60c2c75f5811a27e72ff5cf21aa5f42ab9b2d1b  
    3636        my ($alias)  = $section =~ /^logmon:(.*)/; 
    3737        my $ignore   = $self->cfg->val($section, 'ignore', '30'); 
    38         my $filename = $self->cfg->val($section, 'filename', '/var/logs/xas/xas-spooler.log'); 
    39         my $spooldir = $self->cfg->val($section, 'spooldir', '/var/spool/xas/logs'); 
    40         my $command = sprintf('%s --filename %s --spooldir %s --ignore %s --log-type console', 
    41             $self->cfg->val($section, 'command'), 
     38        my $filename = File($self->cfg->val($section, 'filename', '/var/logs/xas/xas-spooler.log')); 
     39        my $spooldir = Dir($self->cfg->val($section, 'spooldir', '/var/spool/xas/logs')); 
     40        my $command  = File($self->cfg->val($section, 'command')); 
     41        my $pidfile  = File($self->env->run, $command->basename . '-' . $filename->basename . '.pid'); 
     42 
     43        my $command = sprintf('%s --filename %s --spooldir %s --ignore %s --pid-file %s --log-type console', 
     44            $command, 
    4245            $filename, 
    4346            $spooldir, 
    4447            $ignore, 
     48            $pidfile, 
    4549        ); 
    4650 
Note: See TracChangeset for help on using the changeset viewer.