Changeset 20
- Timestamp:
- 04/01/14 12:59:46 (9 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Make.inc
r17 r20 7 7 8 8 # installation directory of the server on the remote system 9 REMOTE_CGI_INSTALL_DIR=stopos.osd.surfsara.nl:/usr/local/stopos/cgi-bin 9 #REMOTE_CGI_INSTALL_DIR=stopos.osd.surfsara.nl:/usr/local/stopos/cgi-bin 10 REMOTE_CGI_INSTALL_DIR=localhost:/home/willem/www/cgi-bin 10 11 11 12 # location of the client programs: … … 13 14 14 15 # remote installation directory of the client programs: 15 REMOTE_CLIENT_INSTALL_DIR=stopos.osd.surfsara.nl:/usr/local/stopos/bin 16 #REMOTE_CLIENT_INSTALL_DIR=stopos.osd.surfsara.nl:/usr/local/stopos/bin 17 REMOTE_CLIENT_INSTALL_DIR=localhost:/usr/local/stopos/bin 16 18 17 19 # location of the modulefile … … 44 46 # Define directory to store the non-mysql databases 45 47 # default is /tmp 46 DB_DIR=/data/stopos48 # DB_DIR=/data/stopos 47 49 -
trunk/modulefile
r18 r20 1 1 #%Module 2 2 ## 3 ## stopos 0.9 23 ## stopos 0.93 4 4 ## 5 5 … … 8 8 } 9 9 10 set root /home/willem/myroot/sara/sw/stopos-0.9 210 set root /home/willem/myroot/sara/sw/stopos-0.93 11 11 12 12 if { [ module-info shelltype ] == "csh" } { -
trunk/stopos.h
r17 r20 24 24 // key from extra key 25 25 const std::string program_name = "stopos"; 26 const std::string program_version = "0.9 2";26 const std::string program_version = "0.93"; 27 27 const std::string default_pool = "pool"; 28 28 -
trunk/stoposclient.cpp
r14 r20 23 23 #include "shellenv.h" 24 24 #include "stopos.h" 25 #define CONNECT_ERROR_MSG "ERROR: Cannot connect to server" 26 #define CONNECT_ERROR_RETRIES 10 25 27 26 28 struct returnvalue … … 121 123 int handle_add(wrequest &w,const std::string &fname,returnvalue &r, const bool quiet) 122 124 { 123 size_t number_of_lines ;125 size_t number_of_lines=0; 124 126 125 127 bool read_from_stdin = 0; … … 171 173 w.set_value(line); 172 174 173 rc = w.send_message(body,header); 174 175 for (int i=0; i<CONNECT_ERROR_RETRIES; i++) 176 { 177 rc = w.send_message(body,header); 178 if (rc == 0) break; 179 sleep(1); 180 } 175 181 if (rc != 0) 176 182 { 177 r.msg = "ERROR: Cannot connect to server";183 r.msg = CONNECT_ERROR_MSG; 178 184 return 1; 179 185 } 186 180 187 r.parse(body); 181 188 if (r.msg != "OK") … … 420 427 std::string body,header; 421 428 422 rc = w.send_message(body,header); 423 429 for (int i=0; i<CONNECT_ERROR_RETRIES; i++) 430 { 431 rc = w.send_message(body,header); 432 if (rc == 0) break; 433 sleep(1); 434 } 424 435 if (rc != 0) 425 r.msg = "ERROR: Cannot connect to server";436 r.msg = CONNECT_ERROR_MSG; 426 437 else 427 438 r.parse(body);
Note: See TracChangeset
for help on using the changeset viewer.