httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tech Newbie <tec...@yahoo.com>
Subject [users@httpd] Starting/Stopping Apache via an API
Date Mon, 19 Sep 2011 18:07:24 GMT
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?
Mime
View raw message