Skip to content

Commit

Permalink
Merge pull request ManageIQ#15811 from gtanzillo/apache-appliance-only
Browse files Browse the repository at this point in the history
Do not try to start/stop apache unless running on an appliance
  • Loading branch information
jrafanie authored Aug 15, 2017
2 parents ad6fdb6 + 424d906 commit 1942e8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/miq_server/environment_management.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,14 @@ def start_memcached
# Apache
#
def start_apache
return unless MiqEnvironment::Command.is_appliance?

MiqApache::Control.start
end

def stop_apache
return unless MiqEnvironment::Command.is_appliance?

MiqApache::Control.stop
end

Expand Down

0 comments on commit 1942e8f

Please sign in to comment.