Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
1cfdb0cb80
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3
    3
      SNF_CS_Developer_Package/snf-server.spec.in

+ 3
- 3
SNF_CS_Developer_Package/snf-server.spec.in Näytä tiedosto

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

Loading…
Peruuta
Tallenna