Changes in / [95c02ff:92ac6bc]
- 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
r95c02ff r92ac6bc 47 47 48 48 # default values for command line arguments 49 rrdfile = "/ usr/share/gnuboat/webservice/data/log-webservice.rrd"49 rrdfile = "/var/www/html/webservice/data/log-webservice.rrd" 50 50 shutdownfile = "/var/spool/gnuboat/shutdown.request" 51 51 logperiod = 1 -
src/webapp/webservice/inc/Config.php
r95c02ff r92ac6bc 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 46 40 public function dataDirectory(){ 47 41 if(array_key_exists("datadirectory", $this->_config)) -
src/webapp/webservice/index.php
r95c02ff r92ac6bc 133 133 $result = array(); 134 134 if($request == REQUEST_SHUTDOWN){ 135 $handle = @fopen( $config->shutdownRequestFile(), "w");135 $handle = @fopen("/var/spool/gnuboat/shutdown.request", "w"); 136 136 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() .")"; 138 138 if($debug > 0) 139 139 echo $message;
Note:
See TracChangeset
for help on using the changeset viewer.
