1. Andriy Kornatskyy
  2. mindref-sbin

Commits

Andriy Kornatskyy  committed 41b0a69

Added script related to the post: Troubleshooting slapd error: too many open files.

  • Participants
  • Parent commits ba04e12
  • Branches default

Comments (0)

Files changed (1)

File slapd-restart.sh

View file
  • Ignore whitespace
+#!/bin/sh
+
+# Restart slapd daemon if it has open more than 512 files
+if [ `pidof slapd | xargs lsof -a -p | wc -l` -gt 512 ]
+then
+    /etc/init.d/slapd restart
+fi