- Don't hardcore prefix in RC script.

PR:		ports/135504
Submitted by:	Martin Tournoij <carpetsmoker@rwxrwxrwx.net>
Approved by:	Robert Felber <robtone@ek-muc.de> (maintainer)
This commit is contained in:
Wesley Shields 2009-06-14 20:25:17 +00:00
parent 33886a414c
commit 435576f64a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=235819

View file

@ -29,16 +29,16 @@ case "$policyd_weight_enable" in
*) echo "To make use of $name set $rcvar=\"YES\" in /etc/rc.conf" ;;
esac
command="/usr/local/bin/policyd-weight"
command="%%PREFIX%%/bin/policyd-weight"
pidfile=/var/run/policyd-weight.pid
policyd_weight_start() {
/usr/local/bin/policyd-weight start
%%PREFIX%%/bin/policyd-weight start
}
policyd_weight_stop() {
echo "Stopping $name"
/usr/local/bin/policyd-weight -k stop
%%PREFIX%%/bin/policyd-weight -k stop
}
run_rc_command "$1"