User Tools

Site Tools


uptime

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
uptime [2015/11/13 11:38] luke7858uptime [2024/05/23 07:26] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ==== Process Uptime ==== ==== Process Uptime ====
 +Find the process ID of the master (parent process), then:
 <sxh bash> <sxh bash>
-ps -eo pid,cmd,etime | grep service+ls -ld /proc/3380
 </sxh> </sxh>
 +Output looks like:
 +<sxh bash>
 +dr-xr-xr-x 8 root root 0 Nov 12 23:05 /proc/3380
 +</sxh>
 +or
 +<sxh bash>
 +ps -eo user,pid,cmd,etime,ppid | grep http
 +</sxh>
 +<sxh bash>
 +ps -eo user,pid,cmd,etime,ppid | grep service
 +</sxh>
 +Show JUST the master process:
 +<sxh  bash>
 +ps -eo user,pid,cmd,etime,ppid | grep -v grep | grep http | grep root
 +</sxh>
 +
 Output is simlar: Output is simlar:
 <sxh bash> <sxh bash>
uptime.1447414723.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki