AloFramework documentation
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • Alo
    • Cache
    • CLI
    • Controller
    • Db
    • Exception
    • FileSystem
    • Session
    • Traversables
    • Validators
    • Windows
  • Controller
  • None
  • PHP

Classes

  • Service

Class Service

Windows service handler

Abstract
Namespace:Alo\Windows
Author:Art <a.molcanovas@gmail.com>
Located atsys/class/alo/windows/service.php

Methods summary

public static boolean
#exists(string$name)

Checks if a service exists

Checks if a service exists

Parameters

$name
string
$name Service name

Returns

boolean

Author

Art <a.molcanovas@gmail.com>
public static string
#delete(string$name)

Deletes a service

Deletes a service

Parameters

$name
string
$name Service name

Returns

string
shell_exec() output

Author

Art <a.molcanovas@gmail.com>
public static string
#stop(string$name)

Stops a service

Stops a service

Parameters

$name
string
$name Service name

Returns

string
shell_exec() output

Author

Art <a.molcanovas@gmail.com>
public static string
#start(string$name)

Starts a service

Starts a service

Parameters

$name
string
$name Service name

Returns

string
shell_exec() output

Author

Art <a.molcanovas@gmail.com>
public static string
#installExe(string$serviceName,string$exePath,null|string$displayName=null)

Installes a service from an executable

Installes a service from an executable

Parameters

$serviceName
string
$serviceName The name of the service
$exePath
string
$exePath Path to the executable
$displayName
null|string
$displayName Optionally, a custom display name for the service

Returns

string
shell_exec() output

Author

Art <a.molcanovas@gmail.com>

Magic methods summary

AloFramework documentation API documentation generated byApiGen 2.8.0