I have apache running just fine on start up and manually using
/etc/init.d/apache2 start and I'm ok with that, but one of the server managers is used to using the service command, and for some reason apache will not run properly through service.
If I run it directly, I get:
Start ...[OK] Stop ...[OK] Help Usage: /etc/apache2/bin/httpd [-D name] [-d directory] [-f file] ...
but when I try to run it through the service command, I get:
Start start: Job failed to start Stop stop: Unknown instance: Help Usage: /etc/apache2/bin/httpd [-D name] [-d directory] [-f file] ...
I previously thought that they were pointing at different executables, but based on the usage output from help, they are both pointing at
/etc/apache2/bin/apachectl, which in turn points at
/etc/apache2/bin/httpd. Also this indicates to me that service can't find the running httpd process (maybe because it's called httpd instead of apache2).
Why would these two methods that are invoking the same exe (it's actually a script, but that shouldn't matter) have different results?