source: trunk/Modules/NetworkConfigLinux/NetworkConfigLinux.php@ 815

Last change on this file since 815 was 815, checked in by chronos, 9 years ago
  • Added: Linux periodic network ports check command.
File size: 830 bytes
Line 
1<?php
2
3include_once(dirname(__FILE__).'/Generators/DNS.php');
4include_once(dirname(__FILE__).'/Generators/CheckPorts.php');
5
6class ModuleNetworkConfigLinux extends AppModule
7{
8 function __construct($System)
9 {
10 parent::__construct($System);
11 $this->Name = 'NetworkConfigLinux';
12 $this->Version = '1.0';
13 $this->Creator = 'Chronos';
14 $this->License = 'GNU/GPL';
15 $this->Description = 'Network service configuration of Linux server';
16 $this->Dependencies = array('NetworkConfig');
17 }
18
19 function DoInstall()
20 {
21 }
22
23 function DoUnInstall()
24 {
25 }
26
27 function DoStart()
28 {
29 $this->System->ModuleManager->Modules['NetworkConfig']->RegisterConfigItem('linux-dns', 'ConfigDNS');
30 $this->System->ModuleManager->Modules['NetworkConfig']->RegisterConfigItem('linux-checkports', 'ConfigCheckPorts');
31 }
32}
Note: See TracBrowser for help on using the repository browser.