Browse Source

Replace /usr/sbin/service with /etc/init.d/snf-server.

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-05e0e16828fc
master
adeniz 11 years ago
parent
commit
1cfdb0cb80
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      SNF_CS_Developer_Package/snf-server.spec.in

+ 3
- 3
SNF_CS_Developer_Package/snf-server.spec.in View File

@@ -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.

Loading…
Cancel
Save