System_Daemon
[ class tree: System_Daemon ] [ index: System_Daemon ] [ all elements ]

Class: System_Daemon_OS_RedHat

Source Location: /System_Daemon-1.0.0/System/Daemon/OS/RedHat.php

Class Overview

System_Daemon_OS
   |
   --System_Daemon_OS_Linux
      |
      --System_Daemon_OS_RedHat

A System_Daemon_OS driver for RedHat based Operating Systems


Author(s):

Version:

  • SVN: Release: $Id$

Copyright:

  • 2008 Kevin van Zonneveld (http://kevin.vanzonneveld.net)

Variables


Child classes:

System_Daemon_OS_Fedora
A System_Daemon_OS driver for Fedora based Operating Systems

Inherited Variables

Inherited Methods

Class: System_Daemon_OS_Linux

System_Daemon_OS_Linux::isInstalled()
Determines wether the system is compatible with this OS

Class: System_Daemon_OS

System_Daemon_OS::__construct()
Constructor
System_Daemon_OS::factory()
Loads all the drivers and returns the one for the most specifc OS
System_Daemon_OS::getAutoRunPath()
Returns OS specific path to autoRun file
System_Daemon_OS::getAutoRunScript()
Uses properties to enrich the autuRun Template
System_Daemon_OS::getAutoRunTemplate()
Returns a template to base the autuRun script on.
System_Daemon_OS::getAutoRunTemplatePath()
Returns a template path to base the autuRun script on.
System_Daemon_OS::getDataDir()
Returns the directory where data is stored (like init.d templates) Could be PEAR's data directory but could also be a local one.
System_Daemon_OS::getDetails()
Returns array with all the specific details of the loaded OS
System_Daemon_OS::isInstalled()
Determines wether the system is compatible with this OS
System_Daemon_OS::isWritable()
A 'better' is_writable. Taken from PHP.NET comments:
System_Daemon_OS::writeAutoRun()
Writes an: 'init.d' script on the filesystem combining
System_Daemon_OS::_getAncestorCount()
Get the total parent count of a class
System_Daemon_OS::_getAncestors()
Get an array of parent classes
System_Daemon_OS::_getShortHand()
Extracts last part of a classname. e.g. System_Daemon_OS_Ubuntu -> Ubuntu
System_Daemon_OS::_mostSpecific()
Determines how specific an operating system is.
System_Daemon_OS::_testAutoRunProperties()
Sets daemon specific properties

Class Details

[line 30]
A System_Daemon_OS driver for RedHat based Operating Systems


[ Top ]


Class Variables

$_autoRunDir =  '/etc/rc.d/init.d'

[line 44]

Path of init.d scripts
  • Access: protected

Type:   string
Overrides:   Array


[ Top ]

$_autoRunTemplatePath =  '#datadir#/template_RedHat'

[line 51]

Template path
  • Access: protected

Type:   string
Overrides:   Array


[ Top ]

$_autoRunTemplateReplace = array(
        "@author_name@"  => "{PROPERTIES.authorName}",
        "@author_email@" => "{PROPERTIES.authorEmail}",
        '@name@'         => '{PROPERTIES.appName}',
        '@desc@'         => '{PROPERTIES.appDescription}',
        '@bin_file@'     => '{PROPERTIES.appDir}/{PROPERTIES.appExecutable}',
        '@bin_name@'     => '{PROPERTIES.appExecutable}',
        '@pid_file@'     => '{PROPERTIES.appPidLocation}',
        '@chkconfig@'    => '{PROPERTIES.appChkConfig}',
    )

[line 59]

Replace the following keys with values to convert a template into a read autorun script
  • Access: protected

Type:   array
Overrides:   Array


[ Top ]

$_osVersionFile =  "/etc/redhat-release"

[line 37]

On Linux, a distro-specific version file is often telling us enough
  • Access: protected

Type:   string
Overrides:   Array


[ Top ]



Documentation generated on Tue, 13 Mar 2012 12:30:12 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.