File: gnumed-client-init_script.sh

package info (click to toggle)
gnumed-client 0.7.10-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 95,756 kB
  • ctags: 119,392
  • sloc: python: 50,163; sh: 670; makefile: 25
file content (48 lines) | stat: -rwxr-xr-x 1,408 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh

#==============================================================
# $Source: /home/ncq/Projekte/cvs2git/vcs-mirror/gnumed/gnumed/external-tools/gnumed-client-init_script.sh,v $
# $Id: gnumed-client-init_script.sh,v 1.1 2009-09-08 12:25:21 ncq Exp $
#
# - copy this to /etc/init.d/gnumed-client
# - only starts the kvk demon if so configured
# - depends on /etc/init.d/libchipcard-tools to have run
# - needs to be converted to a proper init script
#
#==============================================================

CONF="/etc/gnumed/ekg+kvk-demon.conf"

#==============================================================
# There really should not be any need to
# change anything below this line.
#==============================================================

# load config file
if [ -r ${CONF} ] ; then
	. ${CONF}
else
	echo "Cannot read configuration file ${CONF}. Aborting."
	exit 1
fi

if test "${START_DEMON}" != "true" ; then
	echo "Demon disabled in /etc/gnumed/egk+kvk-demon.conf. Aborting."
	exit 1
fi

# for good measure:
#/etc/init.d/libchipcard-tools start

# FIXME: add logging redirection
kvkcard daemon -p "${CARD_SCRIPT}" -a "@cardid@ ${CARD_SCRIPT_ARGS}" &

#==============================================================
# $Log: gnumed-client-init_script.sh,v $
# Revision 1.1  2009-09-08 12:25:21  ncq
# - moved here
#
# Revision 1.1  2008/08/28 18:07:14  ncq
# - first version
#
#