added ebuild for nexus 2.10. it has not been tested yet.

This commit is contained in:
Manuel Friedli 2014-11-19 13:11:56 +01:00
parent 3dcddebbcd
commit 3454ba60cf
3 changed files with 74 additions and 0 deletions

View file

@ -0,0 +1,26 @@
#!/sbin/runscript
depend() {
need net
use dns logger
}
RUN_AS=nexus
checkconfig() {
return 0
}
start() {
checkconfig || return 1
ebegin "Starting ${SVCNAME}"
su $RUN_AS -c "/opt/nexus/nexus-oss-webapp/bin/jsw/linux-x86-32/wrapper start"
eend $?
}
stop() {
ebegin "Stopping ${SVCNAME}"
su $RUN_AS -c "/opt/nexus/nexus-oss-webapp/bin/jsw/linux-x86-32/wrapper stop"
eend $?
}