sysv.rb

Path: lib/automateit/service_manager/sysv.rb
Last Update: Wed Nov 04 15:17:19 -0800 2009

ServiceManager::SYSV

The SYSV driver implements the ServiceManager methods for running?, start and stop on Unix-like platforms that use the System V init process using a /etc/init.d directory.

It also implements a basic enabled? method that‘s very fast but may not work correctly on all SysV platforms. This method should be overridden by more specific drivers when reasonable.

It does not implement the enable and disable methods because these are not standardized and must be implemented using platform-specific drivers, e.g., Chkconfig on RedHat-like platforms.

[Validate]