|
|
|
|
|
|
|
|
/sbin/chkconfig snf-server on |
|
|
/sbin/chkconfig snf-server on |
|
|
|
|
|
|
|
|
# Start the service. |
|
|
# Start the service. |
|
|
/sbin/service snf-server start |
|
|
|
|
|
|
|
|
/etc/init.d/snf-server start |
|
|
|
|
|
|
|
|
%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 |
|
|
|
|
|
|
|
|
/etc/init.d/snf-server stop |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
# Remove the service. |
|
|
# Remove the service. |