updated init script and added patch for the wrapper starting script
This commit is contained in:
parent
3454ba60cf
commit
0f720e9a40
4 changed files with 54 additions and 5 deletions
|
@ -15,12 +15,12 @@ start() {
|
|||
checkconfig || return 1
|
||||
|
||||
ebegin "Starting ${SVCNAME}"
|
||||
su $RUN_AS -c "/opt/nexus/nexus-oss-webapp/bin/jsw/linux-x86-32/wrapper start"
|
||||
su $RUN_AS -c "/opt/nexus/nexus-oss-webapp/bin/nexus start"
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${SVCNAME}"
|
||||
su $RUN_AS -c "/opt/nexus/nexus-oss-webapp/bin/jsw/linux-x86-32/wrapper stop"
|
||||
su $RUN_AS -c "/opt/nexus/nexus-oss-webapp/bin/nexus stop"
|
||||
eend $?
|
||||
}
|
||||
|
|
42
dev-java/nexus-oss-bin/files/nexus-wrapper.patch
Normal file
42
dev-java/nexus-oss-bin/files/nexus-wrapper.patch
Normal file
|
@ -0,0 +1,42 @@
|
|||
diff --git a/bin/nexus b/bin/nexus
|
||||
index 3f3a23c..4f69c5e 100755
|
||||
--- a/nexus-2.10.0-02/bin/nexus
|
||||
+++ b/nexus-2.10.0-02/bin/nexus
|
||||
@@ -161,6 +161,37 @@ case "$DIST_ARCH" in
|
||||
'9000/800')
|
||||
DIST_ARCH="parisc"
|
||||
;;
|
||||
+ *)
|
||||
+ DIST_ARCH=`uname -m | tr [:upper:] [:lower:] | tr -d [:blank:]`
|
||||
+ case "$DIST_ARCH" in
|
||||
+ 'athlon' | 'ia32' | 'i386' | 'i486' | 'i586' | 'i686')
|
||||
+ DIST_ARCH="x86"
|
||||
+ ;;
|
||||
+ 'amd64' | 'x86_64' | 'ia64')
|
||||
+ DIST_ARCH="x86"
|
||||
+ DIST_BITS=64
|
||||
+ ;;
|
||||
+ 'ip27')
|
||||
+ DIST_ARCH="mips"
|
||||
+ ;;
|
||||
+ 'power' | 'powerpc' | 'power_pc')
|
||||
+ DIST_ARCH="ppc"
|
||||
+ ;;
|
||||
+ 'ppc64')
|
||||
+ DIST_ARCH="ppc"
|
||||
+ DIST_BITS=64
|
||||
+ ;;
|
||||
+ 'pa_risc' | 'pa-risc')
|
||||
+ DIST_ARCH="parisc"
|
||||
+ ;;
|
||||
+ 'sun4u' | 'sparcv9')
|
||||
+ DIST_ARCH="sparc"
|
||||
+ ;;
|
||||
+ '9000/800')
|
||||
+ DIST_ARCH="parisc"
|
||||
+ ;;
|
||||
+ esac
|
||||
+ ;;
|
||||
esac
|
||||
|
||||
# Extra architecture detection
|
Loading…
Add table
Add a link
Reference in a new issue