Reason: service doesn't work with /etc/init.d/snf-server under OpenSuse 12.3. git-svn-id: https://svn.microneil.com/svn/PKG-SNF-CS-NIX/trunk@105 233e721a-07f6-49eb-a7da-05e0e16828fcmaster
@@ -94,13 +94,13 @@ make DESTDIR=%{buildroot} install | |||
/sbin/chkconfig snf-server on | |||
# Start the service. | |||
/sbin/service snf-server start | |||
/etc/init.d/snf-server start | |||
%preun | |||
# 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 | |||
/sbin/service snf-server stop | |||
/etc/init.d/snf-server stop | |||
fi | |||
# Remove the service. |