Why go ghetto? You should be doing something like "/sbin/service httpd restart".
Why go ghetto? You should be doing something like "/sbin/service httpd restart".
Note that systemd makes it a lot cleaner and simpler to supply your own service definitions, so eventually your intuition will probably be right, and systemctl will be the proper interface to everything.
The 'service' equivalent is: service httpd configtest
> Why go ghetto?
What does 'going ghetto' mean exactly?
Yep, typo-ed it.
>What does 'going ghetto' mean exactly?
The slang meaning of the term in this case: a low level, jury rigged solution.
For this reason, there's zero excuse for ever having an Apache install crash from a typo.
service httpd configtest
I.e run the proper init script (which might also do other checks), not just test the apache config, as you wouldn't also just start apache with apachectl.Even if you have your own version of apache compiled, you should still provide your own init script, and write in in the standard service way.