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

Class: System_Daemon_OS_Debian

Source Location: /System_Daemon-0.5.0/System/Daemon/OS/Debian.php

Class Overview

System_Daemon_OS
   |
   --System_Daemon_OS_Linux
      |
      --System_Daemon_OS_Debian

A System_Daemon_OS driver for Debian based Operating Systems (including Ubuntu)


Author(s):

Version:

  • SVN: Release: $Id: Debian.php 150 2008-09-05 22:06:05Z kevin $

Copyright:

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

Variables


Child classes:

A System_Daemon_OS driver for Ubuntu. Based on Debian

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::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::writeAutoRun()
Writes an: 'init.d' script on the filesystem combining

Class Details

[line 29]
A System_Daemon_OS driver for Debian based Operating Systems (including Ubuntu)
  • Author: Kevin van Zonneveld <kevin@vanzonneveld.net>
  • Version: SVN: Release: $Id: Debian.php 150 2008-09-05 22:06:05Z kevin $
  • Copyright: 2008 Kevin van Zonneveld (http://kevin.vanzonneveld.net)
  • Link: *
  • License: New BSD Licence


[ Top ]


Class Variables

$autoRunTemplatePath =  "/etc/init.d/skeleton"

[line 43]

Template path
  • Access: protected

Type:   string
Overrides:   Array


[ Top ]

$autoRunTemplateReplace = array(
        "Foo Bar" => "{PROPERTIES.authorName}",
        "foobar@baz.org" => "{PROPERTIES.authorEmail}",
        "daemonexecutablename" => "{PROPERTIES.appName}",
        "Example" => "{PROPERTIES.appName}",
        "skeleton" => "{PROPERTIES.appName}",
        "/usr/sbin/\$NAME" => "{PROPERTIES.appDir}/{PROPERTIES.appExecutable}",
        "Description of the service"=> "{PROPERTIES.appDescription}",
        " --name \$NAME" => "",
        "--options args" => "",
        "# Please remove the \"Author\" lines above and replace them" => "",
        "# with your own name if you copy and modify this script." => ""
    )

[line 51]

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

Type:   array
Overrides:   Array


[ Top ]

$osVersionFile =  "/etc/debian_version"

[line 36]

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

Type:   string
Overrides:   Array


[ Top ]



Documentation generated on Thu, 10 Dec 2015 05:50:59 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.