Project

General

Profile

SOLVED: Question about monitoring rawtransfer.py

Added by Patrick Goetz over 6 years ago

We followed the recommended procedure of mounting the camera PC's disk to the leginon server and allowed rawtransfer.py to move the images off this disk and into the server's image area.

The problem is that the camera PCs are proving to be very volatile, requiring frequent reboots which unmount the partition and cause rawtransfer to become stalled. I'd like to set up a cron job which checks every half hour to make sure the Camera PC disks are still mounted, and attempts to mount them if they're not. The usual way we do this is by placing a "canary" file in the folder and then looking for that file to insure the file system is properly mounted. For example, I'd like to put a file called

i_exist_do_not_delete_me.txt

in the image folders on the camera PCs. Can I be certain that rawtransfer.py won't copy this file away?


Replies (2)

RE: Question about monitoring rawtransfer.py - Added by Anchi Cheng over 6 years ago

rawtransfer.py lists the directory and processes only files with extension of 'mrc' or a specific string in the filename used in DE camera '20*'. Your filename and extension are safe.

RE: Question about monitoring rawtransfer.py - Added by Patrick Goetz over 6 years ago

Thank you for confirming this. Marking this ticket resolved.

    (1-2/2)