Exemple #1
0
 /**
  * Pptp constructor.
  */
 public function __construct()
 {
     clearos_profile(__METHOD__, __LINE__);
     parent::__construct('pptpd');
 }
Exemple #2
0
 /**
  * Apc constructor.
  */
 function __construct()
 {
     clearos_profile(__METHOD__, __LINE__);
     parent::__construct('apcupsd');
 }
Exemple #3
0
 /**
  * Squid constructor.
  */
 public function __construct()
 {
     clearos_profile(__METHOD__, __LINE__);
     parent::__construct('squid');
     $this->error_templates = clearos_app_base('web_proxy') . '/deploy/templates';
     // Handle embedded lib/lib64 paths in configuration files
     //-------------------------------------------------------
     $lib = file_exists('/usr/lib64/squid') ? 'lib64' : 'lib';
     if (clearos_version() >= 7) {
         $this->file_pam_auth = "/usr/{$lib}/squid/basic_pam_auth";
     } else {
         $this->file_pam_auth = "/usr/{$lib}/squid/pam_auth";
     }
     if (clearos_version() >= 7) {
         $this->file_squid_unix_group = "/usr/{$lib}/squid/ext_unix_group_acl";
     } else {
         $this->file_squid_unix_group = "/usr/{$lib}/squid/squid_unix_group";
     }
 }
Exemple #4
0
 /**
  * Avahi constructor.
  */
 public function __construct()
 {
     clearos_profile(__METHOD__, __LINE__);
     parent::__construct('avahi-daemon');
 }