diff options
author | Stanislav Brabec <utx@penguin.cz> | 2009-08-26 21:14:00 +0000 |
---|---|---|
committer | utx@penguin.cz <utx@penguin.cz> | 2009-08-26 21:14:00 +0000 |
commit | 70031b2c7fb634f5b36555860549f3f565d1e373 (patch) | |
tree | eab3ed2b900138832b2b35072e04d69bc877073b /recipes/glibc/files | |
parent | 056a67f6070c5ea561acb65049b551e24f3b7eb6 (diff) |
glibc: nscd: Make it working.
Diffstat (limited to 'recipes/glibc/files')
-rw-r--r-- | recipes/glibc/files/nscd-init.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes/glibc/files/nscd-init.patch b/recipes/glibc/files/nscd-init.patch new file mode 100644 index 0000000000..884609a5a3 --- /dev/null +++ b/recipes/glibc/files/nscd-init.patch @@ -0,0 +1,39 @@ +--- nscd/nscd.init ++++ nscd/nscd.init +@@ -48,9 +48,8 @@ + + start () { + [ -d /var/run/nscd ] || mkdir /var/run/nscd +- [ -d /var/db/nscd ] || mkdir /var/db/nscd + echo -n $"Starting $prog: " +- daemon /usr/sbin/nscd ++ /usr/sbin/nscd + RETVAL=$? + echo + [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd +@@ -67,12 +66,10 @@ + # a non-privileged user + rm -f /var/run/nscd/nscd.pid + rm -f /var/run/nscd/socket +- success $"$prog shutdown" +- else +- failure $"$prog shutdown" + fi +- echo +- return $RETVAL ++ echo "Done." ++ # If nscd did not run, return 0 according to LSB. ++ return 0 + } + + restart() { +@@ -104,7 +101,8 @@ + ;; + force-reload | reload) + echo -n $"Reloading $prog: " +- killproc /usr/sbin/nscd -HUP ++ # Use killall, initscripts-1.0-r115 don't support -HUP yet. ++ killall -HUP /usr/sbin/nscd + RETVAL=$? + echo + ;; |