2016-08-26 15:23:05 +02:00
|
|
|
#!/sbin/openrc-run
|
2014-11-19 13:11:56 +01:00
|
|
|
|
|
|
|
depend() {
|
|
|
|
need net
|
|
|
|
use dns logger
|
|
|
|
}
|
|
|
|
|
|
|
|
RUN_AS=nexus
|
|
|
|
|
|
|
|
checkconfig() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
|
|
|
checkconfig || return 1
|
|
|
|
|
|
|
|
ebegin "Starting ${SVCNAME}"
|
2014-11-19 13:44:32 +01:00
|
|
|
su $RUN_AS -c "/opt/nexus/nexus-oss-webapp/bin/nexus start"
|
2014-11-19 13:11:56 +01:00
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
ebegin "Stopping ${SVCNAME}"
|
2014-11-19 13:44:32 +01:00
|
|
|
su $RUN_AS -c "/opt/nexus/nexus-oss-webapp/bin/nexus stop"
|
2014-11-19 13:11:56 +01:00
|
|
|
eend $?
|
|
|
|
}
|