3 # kdbd: Starts the Elektra Key Database Daemon
5 # chkconfig: 12345 00 99
6 # description: This is the overall daemon needed to correctly access Elektra
7 # key databases on backends like BerkeleyDB.
8 # The daemon will use the backend pointed
9 # by /lib/elektra/libelektra-ddefault.so.
10 # Though not recomended, an elektrified program can access a
11 # key database without this daemon. But different permissions
12 # calculations will be performed.
13 # processname: /sbin/kdbd
21 # Short-Description: Starts the Elektra Key Database access daemon
22 # Description: This is the overall daemon needed to correctly access Elektra
23 # key databases on backends like BerkeleyDB.
24 # The daemon will use the backend pointed
25 # by /lib/elektra/libelektra-ddefault.so.
26 # Though not recomended, an elektrified program can access a
27 # key database without this daemon. But different permissions
28 # calculations will be performed.
39 pidfile=/var/run/kdbd/$prog.pid
42 #[ -f /etc/nscd.conf ] || exit 0
43 [ -x $KDBD_PATH/kdbd ] || exit 0
45 # Source function library.
46 . /etc/init.d/functions
48 # Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
49 #[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd
52 [ -d /var/run/$prog ] || mkdir /var/run/$prog
53 # [ -d /var/db/nscd ] || mkdir /var/db/nscd
55 echo -n $"Starting $prog: "
56 daemon $KDBD_PATH/$prog # $secure $KDBD_OPTIONS
57 # daemon --check $prog $prog --pidfile=$pidfile
60 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/kdbd
65 echo -n $"Stopping $prog: "
69 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
78 # See how we were called.
96 try-restart | condrestart)
97 [ -e /var/lock/subsys/$prog ] && restart
100 force-reload | reload)
101 echo -n $"Reloading $prog: "
102 killproc /usr/sbin/$prog -HUP
107 echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"