/[pxelator]/lib/PXElator/syslogd.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/syslogd.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 363 by dpavlin, Sun Aug 30 11:20:18 2009 UTC revision 387 by dpavlin, Mon Sep 7 09:46:34 2009 UTC
# Line 87  sub start { Line 87  sub start {
87  }  }
88    
89  sub install_local {  sub install_local {
90          warn "# redirect local syslog to pxelator";          my $rsyslog = '/etc/rsyslog.d';
91          my $rsyslog = '/etc/rsyslog.d/pxelator.conf';          return unless -d $rsyslog;
92            $rsyslog .= '/pxelator.conf';
93            warn "# redirect local syslog to pxelator using $rsyslog";
94          write_file $rsyslog, "*.*\t\@$server::ip\n";          write_file $rsyslog, "*.*\t\@$server::ip\n";
95          system "( /etc/init.d/rsyslog stop ; sleep 2 ; /etc/init.d/rsyslog start ; rm $rsyslog ) &";          system "( /etc/init.d/rsyslog stop ; sleep 2 ; /etc/init.d/rsyslog start ; rm $rsyslog ) &";
96  }  }

Legend:
Removed from v.363  
changed lines
  Added in v.387

  ViewVC Help
Powered by ViewVC 1.1.26