Skip to content

Commit 9aec857

Browse files
Daemon - use jack_wait to detect jack
1 parent 8c718d4 commit 9aec857

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)