Skip to content

Commit

Permalink
Proper pid lookup in getForeverId
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdecker committed Mar 27, 2011
1 parent 13bf645 commit 95434b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/initd-example
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ stop() {
}

getForeverId() {
local pid=$(pidofproc $pidfile)
local pid=$(pidofproc -p $pidfile)
$forever list -p $forever_dir | $sed -e 's/\x1b\[[0-9; ]*m//g' | $awk "\$4 == \"$pid]\" { gsub(/[\[\]]/, \"\", \$1); print \$1; }"
}
id=$(getForeverId)
Expand Down

0 comments on commit 95434b3

Please sign in to comment.