freebsd-ports/science/orthanc/files/orthanc.in
Dmitry Marakasov adf952100f - Add science/orthanc
Orthanc aims at providing a simple, yet powerful standalone DICOM
server. It is designed to improve the DICOM flows in hospitals and to
support research about the automated analysis of medical images.

Orthanc can turn any computer running Windows, Linux, FreeBSD or OS X
into a DICOM store (in other words, a mini-PACS system). Its
architecture is lightweight and standalone, meaning that no complex
database administration is required, nor the installation of third-party
dependencies.

What makes Orthanc unique is the fact that it provides a RESTful API.
Thanks to this major feature, it is possible to drive Orthanc from any
computer language. The DICOM tags of the stored medical images can be
downloaded in the JSON file format. Furthermore, standard PNG images can
be generated on-the-fly from the DICOM instances by Orthanc.

Orthanc lets its users focus on the content of the DICOM files, hiding
the complexity of the DICOM format and of the DICOM protocol.

WWW: http://www.orthanc-server.com/

PR:		199146
Submitted by:	mp39590@gmail.com
2015-06-04 14:07:31 +00:00

40 lines
844 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: orthanc
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# orthanc_enable (bool): Set to NO by default.
# Set it to YES to enable Orthanc.
# orthanc_flags (str): Set to %%ETCDIR%%/orthanc.json
# by default.
. /etc/rc.subr
name=orthanc
rcvar=orthanc_enable
desc="RESTful DICOM server for healthcare and medical research"
load_rc_config $name
: ${orthanc_enable:=NO}
: ${orthanc_flags="%%ETCDIR%%/orthanc.json"}
start_precmd=orthanc_prestart
pidfile=/var/run/orthanc.pid
procname=%%PREFIX%%/sbin/Orthanc
command=/usr/sbin/daemon
command_args=" -f -p ${pidfile} -u orthanc ${procname} ${orthanc_flags}"
orthanc_prestart()
{
# Have to empty rc_flags so they don't get passed to daemon(8)
rc_flags=""
}
run_rc_command "$1"