Commits

Andriy Kornatskyy committed 41b0a69

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

Comments (0)

Files changed (1)

+#!/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