[med-svn] r16000 - trunk/packages/orthanc/trunk/debian
Sebastien Jodogne
jodogne-guest at moszumanska.debian.org
Wed Feb 5 10:05:47 UTC 2014
Author: jodogne-guest
Date: 2014-02-05 10:05:46 +0000 (Wed, 05 Feb 2014)
New Revision: 16000
Modified:
trunk/packages/orthanc/trunk/debian/orthanc.init
Log:
clarifications to orthanc.init, tx Andreas
Modified: trunk/packages/orthanc/trunk/debian/orthanc.init
===================================================================
--- trunk/packages/orthanc/trunk/debian/orthanc.init 2014-02-05 07:59:17 UTC (rev 15999)
+++ trunk/packages/orthanc/trunk/debian/orthanc.init 2014-02-05 10:05:46 UTC (rev 16000)
@@ -19,13 +19,16 @@
# You can modify the variables below
DESC="Orthanc"
NAME=Orthanc
-DAEMON=/usr/sbin/$NAME
-LOGDIR=/var/log/orthanc
-DAEMON_ARGS="--logdir=$LOGDIR /etc/orthanc/orthanc.json"
-PIDFILE=/run/$NAME.pid
-SCRIPTNAME=/etc/init.d/orthanc
-ORTHANC_USER=orthanc:orthanc
+# Auto-computed values
+NAME_LOWER_CASE=`echo "${NAME}" | tr '[A-Z]' '[a-z]'`
+DAEMON=/usr/sbin/${NAME}
+LOGDIR=/var/log/${NAME_LOWER_CASE}
+DAEMON_ARGS="--logdir=${LOGDIR} /etc/${NAME_LOWER_CASE}/${NAME_LOWER_CASE}.json"
+PIDFILE=/run/${NAME_LOWER_CASE}.pid
+SCRIPTNAME=/etc/init.d/${NAME_LOWER_CASE}
+ORTHANC_USER=${NAME_LOWER_CASE}:${NAME_LOWER_CASE}
+
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
More information about the debian-med-commit
mailing list