Skip to content

Instantly share code, notes, and snippets.

@shudarshon
Created July 7, 2017 17:41
Show Gist options
  • Save shudarshon/9ada8a8c482e682a3b33502e1472991b to your computer and use it in GitHub Desktop.
Save shudarshon/9ada8a8c482e682a3b33502e1472991b to your computer and use it in GitHub Desktop.
This is a supervisor script for running DCMTK listener application in background .
[program:dcmtk_listener]
command=storescp 5555 -aet app -xcs '. /home/ubuntu/virtual-env/app/bin/activate; cd /home/ubuntu/app/; python manage.py add_dicom #p' --log-config /home/ubuntu/app/dcmtk_log_config.txt -od /home/ubuntu/app/dicoms/ -su ah -tos 30 --accept-all -fe '.dcm'
environment=C_FORCE_ROOT=true
user=ubuntu
numprocs=1
stdout_logfile=/var/log/dcmtk_listener/access.log
stderr_logfile=/var/log/dcmtk_listener/error.log
autostart=true
autorestart=true
startsecs=10
stopwaitsecs=300
killasgroup=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment