Skip to content

Commit

Permalink
Complete unit type for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
KitaitiMakoto committed Jan 23, 2016
1 parent f7115d0 commit ed079cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/droonga/service_installation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,21 @@ def ensure_correct_file_permission(file)

def running?(pid_file_path=nil)
raise NotInstalledAsService.new unless installed_as_service?
system("systemctl", "is-active", "droonga-engine",
system("systemctl", "is-active", "droonga-engine.service",
:out => "/dev/null",
:err => "/dev/null")
end

def start
raise NotInstalledAsService.new unless installed_as_service?
system("systemctl", "start", "droonga-engine",
system("systemctl", "start", "droonga-engine.service",
:out => "/dev/null",
:err => "/dev/null")
end

def stop
raise NotInstalledAsService.new unless installed_as_service?
system("systemctl", "stop", "droonga-engine",
system("systemctl", "stop", "droonga-engine.service",
:out => "/dev/null",
:err => "/dev/null")
end
Expand Down

0 comments on commit ed079cb

Please sign in to comment.