Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Eric Sandall (6099905386df94163fa80d6c940c7731bc077759)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Eric Sandall <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Eric Sandall (6099905386df94163fa80d6c940c7731bc077759)
  • Date: Fri, 22 May 2009 01:32:19 -0500

GIT changes to master grimoire by Eric Sandall <sandalle AT sourcemage.org>:

libs/glibc/HISTORY | 5 +++++
libs/glibc/INSTALL | 5 ++++-
libs/glibc/init.d/nscd | 31 +++++++++++++++++++++++++++++++
libs/glibc/init.d/nscd.conf | 5 +++++
4 files changed, 45 insertions(+), 1 deletion(-)

New commits:
commit 6099905386df94163fa80d6c940c7731bc077759
Author: Eric Sandall <sandalle AT sourcemage.org>
Commit: Eric Sandall <sandalle AT sourcemage.org>

glibc: Install default nscd.conf file
The long missing nscd init script
Configure number of starting threads (default 4)

diff --git a/libs/glibc/HISTORY b/libs/glibc/HISTORY
index bc78de6..b64548b 100644
--- a/libs/glibc/HISTORY
+++ b/libs/glibc/HISTORY
@@ -1,3 +1,8 @@
+2009-05-21 Eric Sandall <sandalle AT sourcemage.org>
+ * INSTALL: Install default nscd.conf file
+ * init.d/nscd: The long missing nscd init script
+ * init.d/nscd.conf: Configure number of starting threads (default 4)
+
2009-05-19 Ladislav Hagara <hgr AT vabo.cz>
* DETAILS: 2.10.1, updated SOURCE_URL[0], asc -> sig
Neumeier.gpg -> gnu.gpg
diff --git a/libs/glibc/INSTALL b/libs/glibc/INSTALL
index ce2d948..28360b0 100755
--- a/libs/glibc/INSTALL
+++ b/libs/glibc/INSTALL
@@ -49,4 +49,7 @@ fi &&
#
if ! grep -q "/usr/lib" $INSTALL_ROOT/etc/ld.so.conf; then
echo "/usr/lib" >> $INSTALL_ROOT/etc/ld.so.conf
-fi
+fi &&
+
+install_config_file $SOURCE_DIRECTORY/nscd/nscd.conf \
+ $INSTALL_ROOT/etc/nscd.conf
diff --git a/libs/glibc/init.d/nscd b/libs/glibc/init.d/nscd
new file mode 100755
index 0000000..dd5625b
--- /dev/null
+++ b/libs/glibc/init.d/nscd
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+[[ -f /etc/sysconfig/nscd ]] && . /etc/sysconfig/nscd
+
+PROGRAM=/usr/sbin/nscd
+ARGS="--config-file=/etc/nscd.conf --nthreads=${NTHREADS:=4}"
+RUNLEVEL=3
+NEEDS="+network +remote_fs"
+RECOMMENDED=yes
+
+. /etc/init.d/smgl_init
+
+start()
+{
+ [[ -d /var/run/nscd ]] || mkdir -p /var/run/nscd
+ echo "Starting Name Service Cache Daemon..."
+ $PROGRAM $ARGS
+ evaluate_retval
+}
+
+stop()
+{
+ echo "Stopping Name Service Cache Daemon..."
+ $PROGRAM --shutdown
+ evaluate_retval
+}
+
+status()
+{
+ $PROGRAM --statistics
+}
diff --git a/libs/glibc/init.d/nscd.conf b/libs/glibc/init.d/nscd.conf
new file mode 100644
index 0000000..69f37af
--- /dev/null
+++ b/libs/glibc/init.d/nscd.conf
@@ -0,0 +1,5 @@
+#
+# Start "n" number of threads
+# (Default "4")
+#
+NTHREADS="4"



  • [SM-Commit] GIT changes to master grimoire by Eric Sandall (6099905386df94163fa80d6c940c7731bc077759), Eric Sandall, 05/22/2009

Archive powered by MHonArc 2.6.24.

Top of Page