Skip to content

Commit

Permalink
Detect running state correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Sep 25, 2014
1 parent e24d665 commit 3f1b648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/droonga/service_installation.rb
Expand Up @@ -100,7 +100,7 @@ def running?(pid_file_path=nil)
raise NotInstalledAsService.new unless installed_as_service?
#TODO: we should support systemd also...
result = `service droonga-engine status`
result.include?("running")
result.include?("is running")
end

def start
Expand Down

0 comments on commit 3f1b648

Please sign in to comment.