mirror of https://github.com/BOINC/boinc.git
Feeder: removed historical defines for PID file and lockfile.
Trigger file to re-read database is now reread_db in the project root direcory, consistent with other BOINC trigger files, rather than in the tmp_project_name subdirectory. Log detection/removal of trigger file. svn path=/trunk/boinc/; revision=8696
This commit is contained in:
parent
2755e0df53
commit
fec9e8d5fa
|
@ -13205,3 +13205,11 @@ Rom 17 Oct 2005
|
|||
|
||||
api/
|
||||
graphics_api.C
|
||||
|
||||
Bruce 17 Oct 2005
|
||||
- Feeder: removed historical defines for PID file and lockfile.
|
||||
Trigger file to re-read database is now reread_db in the project
|
||||
root direcory, consistent with other BOINC trigger files, rather
|
||||
than in the tmp_project_name subdirectory.
|
||||
- Log detection/removal of trigger file.
|
||||
|
||||
|
|
|
@ -123,9 +123,7 @@
|
|||
//
|
||||
//#define REMOVE_INFEASIBLE_ENTRIES
|
||||
|
||||
#define REREAD_DB_FILENAME "reread_db"
|
||||
#define LOCKFILE "feeder.out"
|
||||
#define PIDFILE "feeder.pid"
|
||||
#define REREAD_DB_FILENAME "../reread_db"
|
||||
|
||||
SCHED_CONFIG config;
|
||||
SCHED_SHMEM* ssp;
|
||||
|
@ -145,11 +143,19 @@ int check_reread_trigger() {
|
|||
f = fopen(REREAD_DB_FILENAME, "r");
|
||||
if (f) {
|
||||
fclose(f);
|
||||
log_messages.printf(
|
||||
SCHED_MSG_LOG::MSG_NORMAL,
|
||||
"Found trigger file %s; re-scanning database tables.\n",
|
||||
REREAD_DB_FILENAME
|
||||
);
|
||||
ssp->init();
|
||||
ssp->scan_tables();
|
||||
unlink(REREAD_DB_FILENAME);
|
||||
log_messages.printf(
|
||||
SCHED_MSG_LOG::MSG_NORMAL,
|
||||
"Done re-scanningu: trigger file removed.\n"
|
||||
);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue