Erik Thuning cf5d0537ac Renamed __init__ to watcher and cleaned up some logging code
Using __init__ as the home of Watcher was causing unexpected behaviour for no
good reason, so Watcher now lives in its own file as normal.

There was logging configuration pertaining to processes which is not
meaningful here, so removed it. Also made sure there are no
unexpected log handlers.
2024-06-13 14:40:33 +02:00
2024-06-04 16:11:19 +02:00

arec-watcher

A daemon program that watches an upload directory for new completed uploads from arec recorders and sends a notification to play-api to initiate processing of the uploaded presentation.

Setup

  • Clone the repo to /opt/arec-watcher
  • Create a python venv in the project root: python3 -m venv env (other names are possible but will cause some minor headaches)
  • Activate the environment: source env/bin/activate
  • Install dependencies: pip install -r requirements.txt

For development:

  • Run the program: python3 -m watcher

For production:

  • Copy config.ini.exampleto config.ini and set the proper parameters
  • Create an arec-watcher user
  • Install the systemd unit file: sudo cp arec-watcher.service /etc/systemd/system/
  • Activate the service: sudo systemctl enable arec-watcher.service
  • Run the service: sudo systemctl start arec-watcher.service
Description
No description provided
Readme 40 KiB
Languages
Python 100%