- 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:
parent
33886a414c
commit
435576f64a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=235819
1 changed files with 3 additions and 3 deletions
|
@ -29,16 +29,16 @@ case "$policyd_weight_enable" in
|
||||||
*) echo "To make use of $name set $rcvar=\"YES\" in /etc/rc.conf" ;;
|
*) echo "To make use of $name set $rcvar=\"YES\" in /etc/rc.conf" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
command="/usr/local/bin/policyd-weight"
|
command="%%PREFIX%%/bin/policyd-weight"
|
||||||
pidfile=/var/run/policyd-weight.pid
|
pidfile=/var/run/policyd-weight.pid
|
||||||
|
|
||||||
policyd_weight_start() {
|
policyd_weight_start() {
|
||||||
/usr/local/bin/policyd-weight start
|
%%PREFIX%%/bin/policyd-weight start
|
||||||
}
|
}
|
||||||
|
|
||||||
policyd_weight_stop() {
|
policyd_weight_stop() {
|
||||||
echo "Stopping $name"
|
echo "Stopping $name"
|
||||||
/usr/local/bin/policyd-weight -k stop
|
%%PREFIX%%/bin/policyd-weight -k stop
|
||||||
}
|
}
|
||||||
|
|
||||||
run_rc_command "$1"
|
run_rc_command "$1"
|
||||||
|
|
Loading…
Reference in a new issue