openbsd-ports/net/adsuck/pkg/adsuck.rc
2013-01-12 16:14:22 +00:00

19 lines
358 B
Bash

#!/bin/sh
#
# $OpenBSD: adsuck.rc,v 1.3 2013/01/12 16:14:22 ajacoutot Exp $
daemon="${TRUEPREFIX}/sbin/adsuck"
daemon_flags="-c /var/adsuck -f /files/resolv.conf -r /files/regex /files/hosts.small"
. /etc/rc.d/rc.subr
rc_reload() {
pkill -HUP -f "^${pexp}" && pkill -USR1 -f "^${pexp}"
}
rc_post() {
pkill -f '^adsuck: \[resolv monitor\]'
}
rc_cmd $1