Friday, August 2, 2013

is nscd dead?

if so, restart it.
if [ $(ps aux | grep -e 'nscd$' | grep -v grep | wc -l | tr -s "\n") -eq 0 ]; then /etc/init.d/nscd stop; /etc/init.d/nscd start; fi
might as well crontab it, too.
Post a Comment