Hello,
I attach a patch for scripts/kdbd.
Parts of the patch is controversial that's why I didn't applied it
myself. (it is in the submission for fedora).
The controversial parts:
* \ protecting end of lines for chkconfig. I don't know if it is right
or not
* substitute @kdbdname@ in the lsb and chkconfig comments
* don't start the daemon in the default case. As a side note the
original code is wrong, it should be along
# chkconfig: 345 00 99
* removal of runtime creation of the pid dir
The right parts:
* \ protecting end of lines in the LSB comments part (after BEGIN INIT
INFO)
* the pidfile in the chkconfig part
* the change in Default-Stop:
It may happen that some changes that are necessaary for fedora are not
right in the general case.
--
Pat
--- elektra-0.6.10/scripts/kdbd.in.nostart 2007-03-08 12:58:40.000000000
+0100
+++ elektra-0.6.10/scripts/kdbd.in 2007-03-10 10:35:14.000000000 +0100
@@ -1,30 +1,30 @@
#!/bin/bash
#
-# kdbd: Starts the Elektra Key Database Daemon
+# @kdbdname@: 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
+# chkconfig: - 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: @sbindir@/@kdbdname@
-# config:
-# config:
+# pidfile: @localstatedir@/run/@kdbdname@/@[EMAIL PROTECTED]
+# config:
#
### BEGIN INIT INFO
-# Provides: kdbd
+# Provides: @kdbdname@
# Required-Start:
-# Default-Stop: 0 6
+# Default-Stop: 0 1 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
+# 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
#
@@ -49,7 +49,7 @@
#[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd
start () {
- [ -d @localstatedir@/run/$prog ] || mkdir @localstatedir@/run/$prog
+# [ -d @localstatedir@/run/$prog ] || mkdir @localstatedir@/run/$prog
# [ -d /var/db/nscd ] || mkdir /var/db/nscd
# secure=""
echo -n $"Starting $prog: "
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Registry-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/registry-list