Source: thttpd

Source-Version: 2.25b-6

Referent to bug #448524

The solution presented in 2.25b-6 version, in lenny/sid is:

if ps ax | grep (cat "$PIDFILE") | grep -qv grep; then

That have an error, if two proceses have similar PID, for example httpd have
PID 1234 an exist other proccess with PID 12345, then PID 12345 matches with
PID of thttpd.

My solution is

PID=`cat $PIDFILE`

if ps ax | awk '{print $1}' | grep -q "^${PID}$"; then

PD: forgiveness for my bad English

Reply via email to