File: restart.sh

package info (click to toggle)
libmail-milter-perl 0.06-1.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 196 kB
  • ctags: 97
  • sloc: perl: 1,217; makefile: 50; sh: 8
file content (12 lines) | stat: -rwxr-xr-x 234 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# $Id: restart.sh,v 1.3 2004/03/25 18:59:15 tvierling Exp $

cd $(dirname $0)
kill $(cat milter.pid)
sleep 1

sh -c '
	export PMILTER_DISPATCHER=prefork
	echo $$ >milter.pid
	exec nice -n +4 ./milter.pl >milter.log 2>&1
' &