mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
25 lines
534 B
Text
25 lines
534 B
Text
#!/sbin/openrc-run
|
|
# Copyright 1999-2018 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
depend() {
|
|
need net
|
|
}
|
|
|
|
run_dir="/opt/sonar"
|
|
command="/opt/sonar/bin/linux-multiarch.sh"
|
|
etc_dir="/etc/sonarqube"
|
|
|
|
start() {
|
|
ebegin "Starting SonarQube"
|
|
|
|
start-stop-daemon --start --background -u ${USER} -g ${GROUP} \
|
|
--exec ${command} -- --daemon
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping SonarQube"
|
|
start-stop-daemon --stop --name wrapper --retry 15
|
|
eend $?
|
|
}
|