How to determine if the service is running a shell script

  
 

determine

# pgrep command with the /bin /bash ## Role:! Whether to start testing services, service delivery ## of parametrically: Barlow #### Time: 2013-3-18 # #ser=`/usr/bin/pgrep $1`if [ "$ser" != "" ]thenecho "The $1 service is running."elseecho "The $1 service is NOT running."/Sbin/service $1 startfi

Copyright © Windows knowledge All Rights Reserved