diff options
Diffstat (limited to 'net-mgmt/nav/files/patch-subsystem-alertEngine-alertdaemon.pl')
-rw-r--r-- | net-mgmt/nav/files/patch-subsystem-alertEngine-alertdaemon.pl | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/net-mgmt/nav/files/patch-subsystem-alertEngine-alertdaemon.pl b/net-mgmt/nav/files/patch-subsystem-alertEngine-alertdaemon.pl new file mode 100644 index 000000000000..59e24d2a3b50 --- /dev/null +++ b/net-mgmt/nav/files/patch-subsystem-alertEngine-alertdaemon.pl @@ -0,0 +1,46 @@ +--- subsystem/alertEngine/alertdaemon.pl.orig Wed Apr 28 15:03:41 2004 ++++ subsystem/alertEngine/alertdaemon.pl Thu Nov 11 12:13:15 2004 +@@ -37,9 +37,16 @@ + use IO::Handle; + + use Engine; ++use vars qw ($pscmd); + + #BEGIN {require "alertengine.cfg";} + ++if ((POSIX::uname)[0] eq "FreeBSD") { ++ $pscmd = "ps axc -opid,tty,time,command"; ++} else { ++ $pscmd = "ps -e"; ++} ++ + #################################################### + ## Engine + #################################################### +@@ -65,7 +72,7 @@ + die "Cannot open pidfile"; + my ($pid, $tid) = split / /, <pid_file>; + close(pid_file); +- open ps_file, "ps -e | grep $pid | wc -l|"; ++ open ps_file, "$pscmd | grep $pid | wc -l|"; + my $count=<ps_file>; + close(ps_file); + if($count==0) { +@@ -144,7 +151,7 @@ + die "Cannot open pidfile"; + my ($pid, $tid) = split / /, <pid_file>; + close(pid_file); +- open ps_file, "ps -e | grep $pid | wc -l|"; ++ open ps_file, "$pscmd | grep $pid | wc -l|"; + my $count=<ps_file>; + close(ps_file); + if($count==0) { +@@ -179,7 +186,7 @@ + die "Cannot open pidfile"; + my ($pid, $tid) = split / /, <pid_file>; + close(pid_file); +- open ps_file, "ps -e | grep $pid | wc -l|"; ++ open ps_file, "$pscmd | grep $pid | wc -l|"; + my $count=<ps_file>; + close(ps_file); + if($count>0) { |