3
# Start script for dcmqrscp from dcmtk-package
4
# Adapted from skeleton
5
# @(#)skeleton 2.85-23 28-Jul-2004 miquels@cistron.nl
6
# by Roland Marcus Rutschmann <rudi@debian.org>
7
# and Juergen Salk <juergen.salk@gmx.de>
8
# Version 0.2 Sun, 22 Jul 2007 21:32:42 +0200
11
# Required-Start: $network $local_fs $remote_fs
12
# Required-Stop: $network $local_fs $remote_fs
13
# Default-Start: 2 3 4 5
15
# Short-Description: Init-Script for DCMTK Central Test Node dcmqrscp
21
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
22
DESC="DCMTK Central Test Node"
25
PIDFILE=/var/run/$NAME.pid
26
SCRIPTNAME=/etc/init.d/$NAME
27
DCMQRSCP_CFG="/etc/dcmtk/dcmqrscp.cfg"
29
# Gracefully exit if the package has been removed.
30
test -x $DAEMON || exit 0
32
# Read config file if it is present.
33
if [ -r /etc/default/$NAME ]
38
case "$DCMQRSCP_ENABLE" in
46
# Function that starts the daemon/service.
49
start-stop-daemon --start --quiet --background \
50
--make-pidfile --pidfile $PIDFILE \
51
--exec $DAEMON -- +ac -c $DCMQRSCP_CFG
55
# Function that stops the daemon/service.
58
start-stop-daemon --stop --quiet --pidfile $PIDFILE \
64
echo -n "Starting $DESC: $NAME"
69
echo -n "Stopping $DESC: $NAME"
77
echo -n "Restarting $DESC: $NAME"
84
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2