Commits

Andriy Kornatskyy committed b9c9bcb

Renamed slapd restart sccript for cron compatibility.

  • Participants
  • Parent commits 41b0a69

Comments (0)

Files changed (2)

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

slapd-restart.sh

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