Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Commit

Permalink
Use the service command instead of launchctl to restart Apache.
Browse files Browse the repository at this point in the history
  • Loading branch information
ciaran authored and alloy committed Aug 27, 2008
1 parent 2d99943 commit 2b8e26e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion passenger_pane_config.rb
@@ -1,5 +1,5 @@
module PassengerPaneConfig
APACHE_RESTART_COMMAND = "sudo /bin/launchctl stop org.apache.httpd"
APACHE_RESTART_COMMAND = "/sbin/service org.apache.httpd stop; /sbin/service org.apache.httpd start"
APACHE_DIR = "/private/etc/apache2"
HTTPD_CONF = File.join(APACHE_DIR, 'httpd.conf')
PASSENGER_APPS_DIR = File.join(APACHE_DIR, 'passenger_pane_vhosts')
Expand Down
2 changes: 1 addition & 1 deletion passenger_pane_config.rb.ports
@@ -1,5 +1,5 @@
module PassengerPaneConfig
APACHE_RESTART_COMMAND = "sudo /opt/local/apache2/bin/apachectl restart"
APACHE_RESTART_COMMAND = "/opt/local/apache2/bin/apachectl restart"
APACHE_DIR = "/opt/local/apache2"
HTTPD_CONF = File.join(APACHE_DIR, 'conf', 'httpd.conf')
PASSENGER_APPS_DIR = File.join(APACHE_DIR, 'conf', 'passenger_pane_vhosts')
Expand Down

0 comments on commit 2b8e26e

Please sign in to comment.