wimleers / fileconveyor

File Conveyor is a daemon written in Python to detect, process and sync files. In particular, it's designed to sync files to CDNs. Amazon S3 and Rackspace Cloud Files, as well as any Origin Pull or (S)FTP Push CDN, are supported. Originally written for my bachelor thesis at Hasselt University in Belgium.
https://wimleers.com/fileconveyor
The Unlicense
341 stars 95 forks source link

Offer the option to automatically restart File Conveyor after crash #70

Closed wimleers closed 13 years ago

wimleers commented 13 years ago

When File Conveyor crashes for some reason (i.e. an unhandled exception is thrown), we could automatically restart File Conveyor to ensure it keeps running at all times.

It may be wise to send an e-mail to an administrator, or call some web hook when this happens, to ensure administrators know when this happens. But at least, this will ensure File Conveyor keeps running and doesn't stay offline after crashing.

unn commented 13 years ago

Some way to interface with nagios would be nice.

wimleers commented 13 years ago

I split off Nagios integration into #71.

wimleers commented 13 years ago

While Nagios integration is still a must, automatically e-mailing somebody is apparently super easy with Python's logging module: see the last example of this article.