summaryrefslogtreecommitdiff
path: root/virtual/miller-base/files/auto-restart-services
blob: 5c9c65fd05e9ec6d529e9fbb8672438c6037aa50 (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 | 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