OpenMediaVault
0.6 (Kralizec)
The open network attached storage solution
|
Public Member Functions | |
setGroup ($value) | |
start ($name, $quiet=FALSE) | |
stop ($name, $quiet=FALSE) | |
restart ($name, $quiet=FALSE) | |
monitor ($name, $quiet=FALSE) | |
unmonitor ($name, $quiet=FALSE) | |
update () | |
status ($name) | |
![]() | |
__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/.
OMVMonit::monitor | ( | $name, | |
$quiet = FALSE |
|||
) |
Enable monitoring of the named service.
name | The name of the service. |
quiet | Do not throw an error on failure. Defaults to FALSE. |
OMVMonit::restart | ( | $name, | |
$quiet = FALSE |
|||
) |
Restart the named service.
name | The name of the service. |
quiet | Do not throw an error on failure. Defaults to FALSE. |
|
final |
Set the group option. If set, then the methods start, stop, restart, monitor and unmonitor will be applied to the given group name.
value | Set to TRUE to use the group option, otherwise FALSE. |
OMVMonit::start | ( | $name, | |
$quiet = FALSE |
|||
) |
Start the named service and enable monitoring for it.
name | The name of the service. |
quiet | Do not throw an error on failure. Defaults to FALSE. |
OMVMonit::status | ( | $name | ) |
Get the status of a monitored process.
name | The name of the service. |
OMVMonit::stop | ( | $name, | |
$quiet = FALSE |
|||
) |
Stop the named service and disable its monitoring.
name | The name of the service. |
quiet | Do not throw an error on failure. Defaults to FALSE. |
OMVMonit::unmonitor | ( | $name, | |
$quiet = FALSE |
|||
) |
Disable monitoring of the named service.
name | The name of the service. |
quiet | Do not throw an error on failure. Defaults to FALSE. |
OMVMonit::update | ( | ) |
Create the monit configuration and reinitialize monit.