Skip to content

Commit 4fd1e5b

Browse files
authored
Merge pull request #2829 from lilyinstarlight/fix-jack-detection
Daemon - use jack_wait to detect JACK
2 parents 8c718d4 + 9aec857 commit 4fd1e5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/server/ruby/bin/daemon.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ def run_pre_start_commands
614614
case Util.os
615615
when :linux, :raspberry
616616
#Start Jack if not already running
617-
if `ps cax | grep jackd`.split(" ").first.nil?
617+
if `jack_wait -c`.include? 'not running'
618618
#Jack not running - start a new instance
619619
Util.log "Jackd not running on system. Starting..."
620620
@jack_booter = JackBooter.new

0 commit comments

Comments
 (0)