Changeset 95c02ff for src/webapp
- Timestamp:
- Jul 21, 2016, 4:49:50 PM (10 years ago)
- 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. - Location:
- src/webapp/webservice
- Files:
-
- 2 edited
-
inc/Config.php (modified) (1 diff)
-
index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/webapp/webservice/inc/Config.php
r92ac6bc r95c02ff 38 38 } 39 39 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 40 46 public function dataDirectory(){ 41 47 if(array_key_exists("datadirectory", $this->_config)) -
src/webapp/webservice/index.php
r92ac6bc r95c02ff 133 133 $result = array(); 134 134 if($request == REQUEST_SHUTDOWN){ 135 $handle = @fopen( "/var/spool/gnuboat/shutdown.request", "w");135 $handle = @fopen($config->shutdownRequestFile(), "w"); 136 136 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() .")"; 138 138 if($debug > 0) 139 139 echo $message;
Note:
See TracChangeset
for help on using the changeset viewer.
