/ Published in: Other
Expand |
Embed | Plain Text
ps ax | grep lookupd | grep -v grep | perl -ne 'split; print $_[0]' | xargs sudo kill -HUP
Comments
Subscribe to comments
You need to login to post a comment.
ps ax | grep lookupd | grep -v grep | perl -ne 'split; print $_[0]' | xargs sudo kill -HUP
Subscribe to comments
You need to login to post a comment.
Or with less pipes ;-) sudo kill -HUP
cat /var/run/lookupd.pidOops,
cat /var/run/lookupd.pidmust be between backticks.I've never sure whether to trust the /var/run/ directory. It should be the place to go to for all the pid files, but I'm sure in the past, I've had a process running and due to some crash (or another) the pid file wasn't right...(that doesn't sound totally correct, but it's why I tend to grab the running pid from ps).