Open marksolaris opened 11 years ago
You can use this:
def self.process
if Worker.pid
case RUBY_PLATFORM
when /solaris/
Snorby::Process.new(`ps -o ruser,pid,pcpu,pmem,vsz,rss,tty,s,stime,etime,comm -p #{Worker.pid} |grep delayed_job |grep -v grep`.chomp.strip)
else
Snorby::Process.new(`ps -o ruser,pid,%cpu,%mem,vsize,rss,tt,stat,start,etime,command -p #{Worker.pid} |grep delayed_job |grep -v grep`.chomp.strip)
end
end
end
and add more 'when' clauses for other O.S. requirements.
When running the
command, these errors were seen:
because lib/snorby/worker.rb has this command in it:
This command won't work on Solaris.