/usr/share/doc/elektra-doc/scripts/kdbd is in elektra-doc 0.7.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | #!/bin/bash
#
# kdbd: Starts the Elektra Key Database Daemon
#
# chkconfig: 12345 00 99
# description: This is the overall daemon needed to correctly access Elektra
# key databases on backends like BerkeleyDB.
# The daemon will use the backend pointed
# by /lib/elektra/libelektra-ddefault.so.
# Though not recomended, an elektrified program can access a
# key database without this daemon. But different permissions
# calculations will be performed.
# processname: /sbin/kdbd
# config:
# config:
#
### BEGIN INIT INFO
# Provides: kdbd
# Required-Start:
# Default-Stop: 0 6
# Short-Description: Starts the Elektra Key Database access daemon
# Description: This is the overall daemon needed to correctly access Elektra
# key databases on backends like BerkeleyDB.
# The daemon will use the backend pointed
# by /lib/elektra/libelektra-ddefault.so.
# Though not recomended, an elektrified program can access a
# key database without this daemon. But different permissions
# calculations will be performed.
### END INIT INFO
#
# $Id$
#
#
KDBD_PATH=/sbin
RETVAL=0
prog=kdbd
pidfile=/var/run/kdbd/$prog.pid
# Sanity checks.
#[ -f /etc/nscd.conf ] || exit 0
[ -x $KDBD_PATH/kdbd ] || exit 0
# Source function library.
. /etc/init.d/functions
# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
#[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd
start () {
[ -d /var/run/$prog ] || mkdir /var/run/$prog
# [ -d /var/db/nscd ] || mkdir /var/db/nscd
# secure=""
echo -n $"Starting $prog: "
daemon $KDBD_PATH/$prog # $secure $KDBD_OPTIONS
# daemon --check $prog $prog --pidfile=$pidfile
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/kdbd
return $RETVAL
}
stop () {
echo -n $"Stopping $prog: "
killproc $prog
echo
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
return $RETVAL
}
restart() {
stop
start
}
# See how we were called.
case "$1" in
start)
start
RETVAL=$?
;;
stop)
stop
RETVAL=$?
;;
status)
status kdbd
RETVAL=$?
;;
restart)
restart
RETVAL=$?
;;
try-restart | condrestart)
[ -e /var/lock/subsys/$prog ] && restart
RETVAL=$?
;;
force-reload | reload)
echo -n $"Reloading $prog: "
killproc /usr/sbin/$prog -HUP
RETVAL=$?
echo
;;
*)
echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
RETVAL=1
;;
esac
exit $RETVAL
|