예제 #1
0
 /**
  * Pptp constructor.
  */
 public function __construct()
 {
     clearos_profile(__METHOD__, __LINE__);
     parent::__construct('pptpd');
 }
예제 #2
0
파일: Apc.php 프로젝트: clearos/app-apcups
 /**
  * Apc constructor.
  */
 function __construct()
 {
     clearos_profile(__METHOD__, __LINE__);
     parent::__construct('apcupsd');
 }
예제 #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";
     }
 }
예제 #4
0
 /**
  * Avahi constructor.
  */
 public function __construct()
 {
     clearos_profile(__METHOD__, __LINE__);
     parent::__construct('avahi-daemon');
 }