Skip to content

Instantly share code, notes, and snippets.

@shudarshon
Created July 7, 2017 17:37
Show Gist options
  • Save shudarshon/015e30738a5acfb1d6af16b41041281b to your computer and use it in GitHub Desktop.
Save shudarshon/015e30738a5acfb1d6af16b41041281b to your computer and use it in GitHub Desktop.
This supervisor script runs dcmqrscp application in background for DICOM demonstration.
[program:dcmqrscp]
command=dcmqrscp --config /home/ubuntu/app/dcmqrscp.cfg
user=ubuntu
numprocs=1
stdout_logfile=/var/log/dcmqrscp/access.log
stderr_logfile=/var/log/dcmqrscp/error.log
autostart=true
autorestart=true
startsecs=10
stopwaitsecs=300
killasgroup=true
#-----------------------------------------------------------------------
#
# Example configuration file for the dcmqrdb and dcmqrti applications.
#
#-----------------------------------------------------------------------
#
# Global Configuration Parameters
#
NetworkTCPPort = 11112
MaxPDUSize = 16384
MaxAssociations = 16
#
# UserName = <not used>
# GroupName = <not used>
HostTable BEGIN
#
# The HostTable defines symbolic names for collections of network
# DICOM Application Entities. A symbolic name can represent a single
# application entity or it can represent a group of application entities.
# Each DICOM application entity is defined by a triple consisting of
# Application Entitiy Title, host name and TCP/IP port number.
#
# Entry Format: SymbolicName = ( AETitle, HostName, Portnumber ), ... |
# SymbolicName = SymbolicName, ...
#
# NOTE: in the current implementation you cannot substitute an IP address
# for a hostname.
#
ah1 = (AH1, localhost, 1234)
app = ah1
#
HostTable END
VendorTable BEGIN
#
# The VendorTable is used by the dcmqrdb and dcmqrti applications.
# You can give a vendor name (r.h.s. entry below) to the dcmqrti
# program and it will talk to all hosts and AEs of the vendor.
# The dcmqrdb program can use the vendor table to restrict move destination
# to hosts belonging to a vendor.
# Also, the dcmqrti and dcmqrdb programs use the name defined on the left hand side
# as the vendor name to display above images.
#
# The format:
# VendorName = SymbolicName
# The symbolic name should be defined in the HostTable.
#
"App" = app
#
VendorTable END
AETable BEGIN
#
# Each row of the AETable defines an Application Entities (AE) Title known
# to the dcmqrdb application. Each AE Title represents a separate
# image database located in the specified file system directory (storage area).
# Each AE Title has read/write, quota and peer access restrictions.
#
# Entry Format: AETitle StorageArea Access Quota Peers
# AccessFormat: R | RW | W
# Quota Format: ( maxStudies, maxBytesPerStudy )
# Peers Format: ( Hostname, AETitle, Portnumber ), ... |
# Entry in HostTable |
# ANY
#
COMMON /home/ubuntu/app/common RW (200, 1024mb) ANY
APP_STORE /home/ubuntu/app/database RW (100, 1024mb) app
#
AETable END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment