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:
Bruce Allen 2005-10-18 04:08:12 +00:00
parent 2755e0df53
commit fec9e8d5fa
2 changed files with 18 additions and 4 deletions

View File

@ -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.

View 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;
}