Skip to content
Snippets Groups Projects
Commit 426df769 authored by Ian Baum's avatar Ian Baum
Browse files

Add enabled? function to OmnibusHelper

* Using this in postgresql::enable to start postgresql if configuration
files change. Since should_notify? checks if the service is already
running
parent e9e39114
No related branches found
No related tags found
No related merge requests found
......@@ -10,4 +10,8 @@
@node = node
end
def enabled?(service_name)
File.symlink?("/opt/gitlab/service/#{service_name}")
end
def should_notify?(service_name)
......@@ -13,5 +17,5 @@
def should_notify?(service_name)
File.symlink?("/opt/gitlab/service/#{service_name}") && service_up?(service_name) && service_enabled?(service_name)
enabled?(service_name) && service_up?(service_name) && service_enabled?(service_name)
end
def not_listening?(service_name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment