search for: _pidof

Displaying 4 results from an estimated 4 matches for "_pidof".

Did you mean: pidof
2004 Aug 06
4
REQ: Parent Id
Before the official release of icecast2 1.0 (non beta) i would like to see pid file management, ive discussed this before on how to capture the pid, but ended up with alot of bash rigamaroo that mounted to even more headaches. omething in the config file like <pid>/path/to/icecast.pid</pid> I would be willing to donate some bandwidth to xiph, to aleaviate this issue that causes sever
2004 Aug 06
4
REQ: Parent Id
...tional `ps` output, nor pidof > having any problems with itself (it can never have a PPID of 1, so it > won't return its own PID, ever). > > --- snip --- > #!/bin/sh > > # pidof() code by Christoph Moench-Tegeder > # and Michael Erdely (from tech@openbsd.org) > # > _pidof() > { > ps -acxo pid,ppid,command | \ > awk "\$3==\"$1\" && \$2==\"1\" {print \$1}" > } > > if [ $# -ne 1 ] ; then > cat << _EOF > Usage: $0 <daemon_name> > > $0 displays the PID of a process, &g...
2004 Aug 06
0
REQ: Parent Id
...ive - no insane greppery, no conflicts with additional `ps` output, nor pidof having any problems with itself (it can never have a PPID of 1, so it won't return its own PID, ever). --- snip --- #!/bin/sh # pidof() code by Christoph Moench-Tegeder # and Michael Erdely (from tech@openbsd.org) # _pidof() { ps -acxo pid,ppid,command | \ awk "\$3==\"$1\" && \$2==\"1\" {print \$1}" } if [ $# -ne 1 ] ; then cat << _EOF Usage: $0 <daemon_name> $0 displays the PID of a process, if its parent PID is 1. $0 exits with the return...
2004 Aug 06
0
REQ: Parent Id
...problems with itself (it can never have a PPID of 1, so it > > won't return its own PID, ever). > > > > --- snip --- > > #!/bin/sh > > > > # pidof() code by Christoph Moench-Tegeder > > # and Michael Erdely (from tech@openbsd.org) > > # > > _pidof() > > { > > ps -acxo pid,ppid,command | \ > > awk "\$3==\"$1\" && \$2==\"1\" {print \$1}" > > } > > > > if [ $# -ne 1 ] ; then > > cat << _EOF > > Usage: $0 <daemon_name> > &...