Changeset 229
- Timestamp:
- 04/11/07 12:16:07 (2 years ago)
- Files:
-
- trunk/webmin/lsc/debian/changelog (modified) (1 diff)
- trunk/webmin/lsc/include/command_launcher.inc.php (modified) (3 diffs)
- trunk/webmin/lsc/include/commands.inc.php (modified) (3 diffs)
- trunk/webmin/lsc/include/commands_on_host.inc.php (modified) (2 diffs)
- trunk/webmin/lsc/include/scheduler.inc.php (modified) (1 diff)
- trunk/webmin/lsc/module.info (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/webmin/lsc/debian/changelog
r227 r229 1 webmin-lsc (1.0. 3) stable; urgency=low1 webmin-lsc (1.0.4) stable; urgency=low 2 2 3 3 * See SVN history trunk/webmin/lsc/include/command_launcher.inc.php
r227 r229 554 554 if ( $mac != "" ) { 555 555 $remains_connection_attempt = lsc_command_on_host_get_remains_connection_attempt($this->id_command_on_host); 556 while($remains_connection_attempt > =0) {556 while($remains_connection_attempt > 0) { 557 557 $this->command_on_host->refresh(); 558 558 … … 629 629 lsc_command_on_host_set_remains_connection_attempt( 630 630 $this->id_command_on_host, 631 $remains_connection_attempt--631 --$remains_connection_attempt 632 632 ); 633 633 … … 636 636 time() + ($this->command->next_connection_delay * 60) 637 637 ); 638 638 639 if ($remains_connection_attempt <= 0) return -1; 640 639 641 sleep($this->command->next_connection_delay * 60); 640 642 } trunk/webmin/lsc/include/commands.inc.php
r227 r229 763 763 } 764 764 765 // should we kill the running job if available ? 766 765 767 $query = sprintf( 766 768 " … … 768 770 %s 769 771 SET 770 current_state = \"stop\" 772 current_state = \"stop\", 773 current_pid = -1 771 774 WHERE 772 775 id_command = \"%s\" and … … 810 813 WHERE 811 814 id_command = \"%s\" and 812 current_state = \"upload_failed\" 813 ", 815 current_state = \"upload_failed\" ", 814 816 COMMANDS_ON_HOST_TABLE, 815 817 $id_command trunk/webmin/lsc/include/commands_on_host.inc.php
r227 r229 981 981 } 982 982 983 /* 984 * 985 */ 983 /* Reset the connection attempts */ 984 985 $database->query("UPDATE ".COMMANDS_ON_HOST_TABLE." 986 SET current_pid=-1 987 WHERE id_command=\"$id_command_on_host\""); 988 $database->query("UPDATE ".COMMANDS_ON_HOST_TABLE." 989 SET number_attempt_connection_remains=1 990 WHERE id_command=\"$id_command_on_host\" AND number_attempt_connection_remains=0"); 991 986 992 $query = sprintf( 987 993 " … … 1084 1090 1085 1091 1092 1086 1093 ?> trunk/webmin/lsc/include/scheduler.inc.php
r227 r229 331 331 NOT (A.current_state = \"delete_failed\") and 332 332 NOT (A.current_state = \"inventory_failed\") and 333 (A.number_attempt_connection_remains > 0) and 333 334 (A.current_pid = \"-1\") 334 335 ORDER BY trunk/webmin/lsc/module.info
r227 r229 3 3 desc_fr=LRS : Prise de Contrôle à Distance Sécurisé 4 4 depends=1.030 lbs_common 5 version=1.0. 35 version=1.0.4
