Changeset 95c02ff for src/webapp


Ignore:
Timestamp:
Jul 21, 2016, 4:49:50 PM (10 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, debian/jessie
Children:
1533ca1, 438871b
Parents:
92ac6bc (diff), 9be4f3f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/master' into debian/jessie

Location:
src/webapp/webservice
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/webapp/webservice/inc/Config.php

    r92ac6bc r95c02ff  
    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       
    4046        public function dataDirectory(){
    4147                if(array_key_exists("datadirectory", $this->_config))
  • src/webapp/webservice/index.php

    r92ac6bc r95c02ff  
    133133$result = array();
    134134if($request == REQUEST_SHUTDOWN){
    135         $handle = @fopen("/var/spool/gnuboat/shutdown.request", "w");
     135        $handle = @fopen($config->shutdownRequestFile(), "w");
    136136        if($handle === false){
    137                 $message = "Could not create file to indicate shutdown to the daemon (Timezone: ". date_default_timezone_get() .")";
     137                $message = "Could not create file (". $config->shutdownRequestFile() .") 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.