- #! /usr/bin/perl
- $ck=`ps -ef | grep 'sasl' | grep -v grep`;
- if ($ck eq ''){
- print "SASL Down, Start up now\\n";
- `/etc/rc.d/init.d/saslauthd start`;
- }else{
- print "SASL Running\\n";
- }
- #该片段来自于http://www.codesnippet.cn/detail/241220121161.html
来源: http://www.codesnippet.cn/detail/241220121161.html