- Timestamp:
- Jul 21, 2016, 4:45:27 PM (10 years ago)
- Branches:
- 0.5, app-cordova, debian/bullseye, debian/jessie, master
- Children:
- 04de4a4, 95c02ff
- Parents:
- 6c57d0a
- Location:
- src
- Files:
-
- 3 edited
-
daemon/gnuboat (modified) (1 diff)
-
webapp/webservice/inc/Config.php (modified) (1 diff)
-
webapp/webservice/index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/daemon/gnuboat
r6c57d0a r9be4f3f 47 47 48 48 # default values for command line arguments 49 rrdfile = "/ var/www/html/webservice/data/log-webservice.rrd"49 rrdfile = "/usr/share/gnuboat/webservice/data/log-webservice.rrd" 50 50 shutdownfile = "/var/spool/gnuboat/shutdown.request" 51 51 logperiod = 1 -
src/webapp/webservice/inc/Config.php
r6c57d0a r9be4f3f 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
r6c57d0a r9be4f3f 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.
