0

I'm on ubuntu 12.04.

The default exe location for service apache2 (usage ex: sudo service apache2 start) currently points at /etc/apache2/bin/httpd, but that will not modify the current running apache process since init.d uses apachectl on boot. How do I change the service exe location to /etc/apache2/bin/apachectl?

1

As far as I know, /usr/sbin/service is just a wrapper for init.d scripts. Have a look at the file:

# A convenient wrapper for the /etc/init.d init scripts.

So, if your init.d uses apachectl, then service should use them too.

  • The help info that prints out if I just run sudo service apache2, is generated from httpd, Usage: /etc/apache2/bin/httpd [-D name] [-d directory] [-f file] – TheBat Oct 16 '14 at 20:14
  • Does sudo /etc/init.d/apache2 help print that aswell? – MinusFour Oct 16 '14 at 20:45
  • Looks like it does, I'll have to figure out what's really going on then. Back to google with meeee. Thanks. – TheBat Oct 16 '14 at 20:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.