edeposit_amqp_pdfgend.py script


$ ./edeposit_amqp_pdfgend.py -h
usage: edeposit_amqp_pdfgend.py start/stop/restart [-f/--foreground]

AMQP binding for PDF generator.

positional arguments:
  start/stop/restart  Start/stop/restart the daemon.

optional arguments:
  -h, --help          show this help message and exit
  -f, --foreground    Run at foreground, not as daemon. If not set, script is
                      will run at background as unix daemon.

Example usage:

./edeposit_amqp_pdfgend.py start
started with pid 7195


$ ./edeposit_amqp_pdfgend.py start --foreground

In this case, the script runs as normal program, and it is not daemonized.


$ ./edeposit_amqp_pdfgend.py stop
No handlers could be found for logger "pika.adapters.base_connection"

Don’t be concerned by warnings when stopping the daemon, it is just something that out communication library does.