Changes in / [95c02ff:92ac6bc]


Ignore:
Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/daemon/gnuboat

    r95c02ff r92ac6bc  
    4747
    4848# default values for command line arguments
    49 rrdfile = "/usr/share/gnuboat/webservice/data/log-webservice.rrd"
     49rrdfile = "/var/www/html/webservice/data/log-webservice.rrd"
    5050shutdownfile = "/var/spool/gnuboat/shutdown.request"
    5151logperiod = 1
  • src/webapp/webservice/inc/Config.php

    r95c02ff r92ac6bc  
    3838        }
    3939       
    40         public function shutdownRequestFile(){
    41                 if(array_key_exists("shutdownfile", $this->_config))
    42                         return $this->_config["shutdownfile"];
    43                 return "/var/spool/gnuboat/shutdown.request";
    44         }
    45        
    4640        public function dataDirectory(){
    4741                if(array_key_exists("datadirectory", $this->_config))
  • src/webapp/webservice/index.php

    r95c02ff r92ac6bc  
    133133$result = array();
    134134if($request == REQUEST_SHUTDOWN){
    135         $handle = @fopen($config->shutdownRequestFile(), "w");
     135        $handle = @fopen("/var/spool/gnuboat/shutdown.request", "w");
    136136        if($handle === false){
    137                 $message = "Could not create file (". $config->shutdownRequestFile() .") to indicate shutdown to the daemon (Timezone: ". date_default_timezone_get() .")";
     137                $message = "Could not create file to indicate shutdown to the daemon (Timezone: ". date_default_timezone_get() .")";
    138138                if($debug > 0)
    139139                        echo $message;
Note: See TracChangeset for help on using the changeset viewer.