I have a process, x, which has the PPID (listed by ps
) or the process -bash
started about a month ago..
myuser+ 11861 11858 0 Jun13 pts/178 00:00:00 -bash
myuser+ 16321 11861 8 Jun13 pts/178 2-01:07:02 myprocessx
Does this mean someone started my process x from bash
with e.g. nohup
?
I want to know as want to restart the process but cannot be sure they have some other process manager, e.g. supervisor
for managing the process, and want to use whatever was used to start the current process..
ps
with-o
including one ofstart start_time/stime lstart bsdstart
and other things like,pid,uid,tty,comm/args
as needed. If 16321 was created after 11858 then yes it was created by the (probable) login shell in 11858. If 16321 was created before 11858 then it was created by a prior process using the same pid that died and was reaped and the pid was reallocated to that login bash.ps
can't tell you if it usednohup
; even looking at the sigmask won't tell you for sure unless you know what (all!) the code in myprocessx does (and if it has changed, what it used to do).