summaryrefslogtreecommitdiff
path: root/virtual/miller-base/files/auto-restart-services
blob: 82b497b7d5a90af43a1e1d28c39f9a711947e63b (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

for f in `lsof -n +c0 | grep '\(DEL\|deleted\)' | grep -v /dev/zero  | grep -v /SYS | grep -v /var/lib/postgresql/ | cut -d ' ' -f 1 | sort -u`; do
	echo $f
	sc=/usr/libexec/scripts/auto-restart/$f
	if [ -x $sc ] ; then
		echo restart $f with $sc
		. $sc
	fi
done