OpenMediaVault
0.6 (Kralizec)
The open network attached storage solution
|
Public Member Functions | |
__construct ($name, $enable=FALSE, $update=TRUE) | |
exec () | |
enable () | |
disable () | |
defaults () | |
remove () | |
start () | |
stop () | |
restart () | |
reload () | |
invoke ($action) | |
status () | |
![]() | |
__construct () | |
getLastError () | |
Additional Inherited Members | |
![]() | |
setLastError ($error) | |
debug () | |
This file is part of OpenMediaVault.
OpenMediaVault is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
OpenMediaVault is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with OpenMediaVault. If not, see http://www.gnu.org/licenses/.
OMVSysVInitScript::__construct | ( | $name, | |
$enable = FALSE , |
|||
$update = TRUE |
|||
) |
Constructor
name | The name of the init script. |
enable | TRUE to start the process. Defaults to FALSE. |
update | TRUE to call the update-rc.d script. Defaults to TRUE. |
OMVSysVInitScript::defaults | ( | ) |
Make links to start and stop the service in the defined runlevels.
E_EXEC_FAILED |
OMVSysVInitScript::disable | ( | ) |
Disable the system init script.
OMVSysVInitScript::enable | ( | ) |
Enable the system init script.
OMVSysVInitScript::exec | ( | ) |
Depending on the given constriuctor parameter do the following:
OMVSysVInitScript::invoke | ( | $action | ) |
Invoke init script with the given aktion. Throws an exception in case of an error.
action | The action to be executed. |
E_EXEC_FAILED |
OMVSysVInitScript::reload | ( | ) |
Invoke init script with parameter 'reload'.
OMVSysVInitScript::remove | ( | ) |
Remove the system init script from all runlevels.
E_EXEC_FAILED |
OMVSysVInitScript::restart | ( | ) |
Invoke init script with parameter 'restart'.
OMVSysVInitScript::start | ( | ) |
Invoke init script with parameter 'start'.
OMVSysVInitScript::status | ( | ) |
Invoke init script with parameter 'status'.
OMVSysVInitScript::stop | ( | ) |
Invoke init script with parameter 'stop'.