geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r800716 - /geronimo/server/branches/2.1/assemblies/geronimo-boilerplate-minimal/src/main/underlay/bin/gserviceReg.sh
Date Tue, 04 Aug 2009 09:32:18 GMT
Author: xuhaihong
Date: Tue Aug  4 09:32:17 2009
New Revision: 800716

URL: http://svn.apache.org/viewvc?rev=800716&view=rev
Log:
GERONIMO-4622 Contribution: Linux service script for Geronimo/WAS CE (Patch from viola.lu)

Modified:
    geronimo/server/branches/2.1/assemblies/geronimo-boilerplate-minimal/src/main/underlay/bin/gserviceReg.sh

Modified: geronimo/server/branches/2.1/assemblies/geronimo-boilerplate-minimal/src/main/underlay/bin/gserviceReg.sh
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/assemblies/geronimo-boilerplate-minimal/src/main/underlay/bin/gserviceReg.sh?rev=800716&r1=800715&r2=800716&view=diff
==============================================================================
--- geronimo/server/branches/2.1/assemblies/geronimo-boilerplate-minimal/src/main/underlay/bin/gserviceReg.sh
(original)
+++ geronimo/server/branches/2.1/assemblies/geronimo-boilerplate-minimal/src/main/underlay/bin/gserviceReg.sh
Tue Aug  4 09:32:17 2009
@@ -233,7 +233,8 @@
  if $osAix; then    
    echo "$2:2:respawn:/usr/sbin/$2 start">>/etc/inittab
  fi 
- if $osUbuntu; then    
+ if $osUbuntu; then
+   ln -sf /usr/sbin/"$2" /etc/init.d/"$2"    
    update-rc.d $2 defaults 99 01   
  fi
 else
@@ -256,7 +257,8 @@
    rm -fr /etc/rc3.d/S99"$2"
  fi
  if $osUbuntu; then    
-   update-rc.d -f $2 remove   
+   update-rc.d -f $2 remove
+   rm -f /etc/init.d/"$2"   
  fi
  rm -f /usr/sbin/$2
  rm -f "$GSERVICE_NAME" 



Mime
View raw message