mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
fixing sonarqube's stop() function
This commit is contained in:
parent
877669aa5c
commit
0341b89605
1 changed files with 3 additions and 7 deletions
|
|
@ -8,22 +8,18 @@ depend() {
|
|||
|
||||
run_dir="/opt/sonar"
|
||||
command="/opt/sonar/bin/linux-multiarch.sh"
|
||||
pidfile="$run_dir/sonarr.pid"
|
||||
etc_dir="/etc/sonarqube"
|
||||
log_dir="/var/log/sonarqube"
|
||||
log_file="sonarr.log"
|
||||
|
||||
start() {
|
||||
ebegin "Starting SonarQube"
|
||||
|
||||
start-stop-daemon --start --background --make-pidfile --pidfile ${pidfile} \
|
||||
-u ${USER} -g ${GROUP} --exec ${command} -- --daemon \
|
||||
--log=${log_dir}/${log_file}
|
||||
start-stop-daemon --start --background -u ${USER} -g ${GROUP} \
|
||||
--exec ${command} -- --daemon
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping SonarQube"
|
||||
start-stop-daemon --stop --pidfile ${pidfile} --retry 15
|
||||
start-stop-daemon --stop --name wrapper --retry 15
|
||||
eend $?
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue