I am aware of the way to start/stop Apache via apachectl, both locally and remotely via SSH.
Is there some generic unix API, perhaps related to /sbin/service, that I can remotely programmatically start Apache without exec'ing apachectl directly?
I'm thinking since Apache is already configured in /etc/init.d, is there a unix API that my program can interface with, that say
something like:
// start Apache via some API
service.start("Apache");
Without my program actually exec'ing apachectl directly?