Starting/Stopping Apache via an API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux