Class Daemon
System daemons manager.
A meta file is used to organize and manage the daemons on the system. In an ideal world, we would be able to scan the list of init scripts in /etc/rc.d and generate the service list on the fly. Unfortunately there are some inconsistencies that make this impossible. The meta file holds the following information:
- the RPM where the daemon lives
- the daemon/process name (what you see with ps)
- whether or not the daemon supports a "/etc/rc.d/init.d/<xyz> reload"
- a short title (eg Apache Web Server)
Ideally, the constructor would require the same parameter as the Software class -- the name of the package. However, some packages can have more than one daemon.
Located in /api/Daemon.class.php (line 75)
Engine | --Software | --Daemon
| Class | Description |
|---|---|
| Cups | Cups print server class. |
| SpamAssassin | SpamAssassin class. |
| Fetchmail | Fetchmail class. |
| Snort | Snort intrusion detection class. |
| Mysql | Mysql class. |
| OpenVpn | OpenVPN server. |
| Firewall | Firewall base class. |
| Bacula | Backup and restore system system using Bacula. |
| Cyrus | Cyrus mail server class. |
| Ipsec | IpSec class. |
| Layer7Filter | Protocol filter (l7-filter) class. |
| Freshclam | Freshclam class. |
| Httpd | Httpd web server class. |
| Postfix | Postfix mail server. |
| Ldap | LDAP class. |
| DnsMasq | Dnsmasq caching nameserver. |
| AutoFs | Automount Utility. |
| Pcmcia | PCMCIA server. |
| Syslog | Syslog class. |
| SnortSam | SnortSam intrusion prevention class. |
| Nmbd | Netbios name server. |
| Amavis | Amavis class. |
| Suva | Suva utility class. |
| Postgrey | Postgrey class. |
| Winbind | Netbios name server. |
| Cron | Cron server and crontab configuration. |
| Pptpd | PPTP VPN class. |
| ClamAv | ClamAV class. |
| Proftpd | ProFTP FTP server. |
| Kolab | Kolab groupware class. |
| Webconfig | Webconfig class. |
| Syswatch | System watch class. |
| Squid | Squid web proxy class. |
| DansGuardian | DansGuardian filtering software. |
| Samba | Samba server. |
Inherited Variables
Inherited from Software
Software::$copyright
Software::$description
Software::$installsize
Software::$installtime
Software::$packager
Software::$pkgname
Software::$release
Software::$summary
Software::$version
Inherited from Engine
Engine::$errors
Daemon constructor.
- string $initscript: filename of init script in /etc/rc.d.
- Software::__construct()
- Software constructor.
- Cups::__construct() : Cups constructor.
- SpamAssassin::__construct() : SpamAssassin constructor.
- Fetchmail::__construct() : Fetchmail constructor.
- Snort::__construct() : Snort constructor.
- Mysql::__construct() : Mysql constructor.
- OpenVpn::__construct() : OpenVPN constructor.
- Firewall::__construct() : Firewall constructor.
- FirewallRedirect::__construct() : Firewall redirect constructor.
- FirewallMultiWan::__construct() : Class constructor.
- FirewallForward::__construct() : FirewallForward constructor.
- FirewallLayer7Filter::__construct() : FirewallLayer7Filter constructor.
- Bandwidth::__construct() : Bandwidth constructor.
- FirewallOutgoing::__construct() : Firewall constructor.
- FirewallIncoming::__construct() : FirewallIncoming constructor.
- FirewallOneToOneNat::__construct() : FirewallOneToOneNat constructor.
- FirewallDmz::__construct() : Firewall DMZ constructor.
- FirewallWifi::__construct() : FirewallWifi constructor.
- Bacula::__construct() : The Bacula constructor.
- Cyrus::__construct() : Cyrus constructor.
- Ipsec::__construct() : IpSec constructor.
- Layer7Filter::__construct() : Layer7Filter constructor.
- Freshclam::__construct() : Freshclam constructor.
- Httpd::__construct() : Locale constructor.
- Postfix::__construct() : Postfix constructor.
- Ldap::__construct() : Ldap constructor.
- DnsMasq::__construct() : DnsMasq constructor.
- AutoFs::__construct() : AutoFs constructor.
- Pcmcia::__construct() : PCMCIA constructor.
- Syslog::__construct() : Syslog constructor.
- SnortSam::__construct() : SnortSam constructor.
- Nmbd::__construct() : Nmbd constructor.
- Amavis::__construct() : Amavis constructor.
- Suva::__construct() : Suva constructor.
- Postgrey::__construct() : Postgrey constructor.
- Winbind::__construct() : Winbind constructor.
- Cron::__construct() : Cron constructor.
- Pptpd::__construct() : Pptp constructor.
- ClamAv::__construct() : ClamAV constructor.
- Proftpd::__construct() : Locale constructor.
- Kolab::__construct() : Kolab constructor.
- Webconfig::__construct() : Webconfig constructor.
- Syswatch::__construct() : Syswatch constructor.
- Squid::__construct() : Squid constructor.
- DansGuardian::__construct() : Dansguardian constructor.
- Samba::__construct() : Samba constructor.
- SpamAssassin::__destruct()
- Snort::__destruct()
- OpenVpn::__destruct()
- FirewallRedirect::__destruct()
- FirewallForward::__destruct()
- FirewallLayer7Filter::__destruct()
- FirewallOutgoing::__destruct()
- FirewallIncoming::__destruct()
- FirewallOneToOneNat::__destruct()
- FirewallDmz::__destruct()
- Cyrus::__destruct()
- Pcmcia::__destruct()
- SnortSam::__destruct()
- Amavis::__destruct()
- Postgrey::__destruct()
- Pptpd::__destruct()
- ClamAv::__destruct()
- Kolab::__destruct()
- Webconfig::__destruct()
- Syswatch::__destruct()
- Squid::__destruct()
- DansGuardian::__destruct()
Returns the boot state of the daemon.
Returns the process name of the daemon.
Returns the running state of the daemon.
Returns a short title for the daemon (eg Apache Web Server).
Restarts the daemon if (and only if) it is already running.
Restarts the daemon.
Sets the boot state of the daemon.
- boolean $state: desired boot state
Sets running state of the daemon.
- boolean $state: desired running state
Inherited Methods
Inherited From Software
Software::__construct()
Software::GetCopyright()
Software::GetDescription()
Software::GetInstallSize()
Software::GetInstallTime()
Software::GetPackageName()
Software::GetPackager()
Software::GetRelease()
Software::GetRpmInfo()
Software::GetSummary()
Software::GetVersion()
Software::IsInstalled()
Software::__destruct()
Inherited From Engine
Engine::__construct()
Engine::AddValidationError()
Engine::CheckValidationErrors()
Engine::CopyValidationErrors()
Engine::GetValidationErrors()
Engine::Log()
Engine::__destruct()
CMD_CHKCONFIG
= '/sbin/chkconfig'
(line 113)
CMD_LS
= '/bin/ls'
(line 112)
CMD_PIDOF
= '/sbin/pidof'
(line 115)
CMD_SERVICE
= '/sbin/service'
(line 114)
PATH_INITD
= '/etc/rc.d/rc3.d'
(line 116)
Inherited Constants
Inherited from Software
Software::COMMAND_RPM
Inherited from Engine
Engine::COMMAND_API
Documentation generated on Fri, 28 Aug 2009 20:32:02 -0400 by phpDocumentor 1.3.2

