Reason: Using /sbin/service does not output "running" if the service is running. git-svn-id: https://svn.microneil.com/svn/PKG-SNF-CS-NIX/trunk@108 233e721a-07f6-49eb-a7da-05e0e16828fcmaster
%preun | %preun | ||||
# Stop the service if it is running. | # Stop the service if it is running. | ||||
/sbin/service snf-server status | grep running > /dev/null 2>&1 | |||||
/etc/init.d/snf-server status | grep running > /dev/null 2>&1 | |||||
if [ $? == 0 ]; then | if [ $? == 0 ]; then | ||||
/sbin/service snf-server stop | /sbin/service snf-server stop | ||||
fi | fi |