packages/openvpn: fix pid-file arg passed in service command-line

git-svn-id: svn://svn.openwrt.org/openwrt/packages@29184 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico
2011-11-16 13:27:42 +00:00
parent f2342460e9
commit 1de2919548
3 changed files with 5 additions and 5 deletions

View File

@ -107,7 +107,7 @@ start_instance() {
down push up
SERVICE_PID_FILE="/var/run/openvpn-$s.pid" \
SERVICE_PID_FILE="/var/run/openvpn-$s.pid"
service_start /usr/sbin/openvpn --syslog "openvpn($s)" --writepid "$SERVICE_PID_FILE" $ARGS
}
@ -116,7 +116,7 @@ stop_instance() {
section_enabled "$s" || return 1
SERVICE_PID_FILE="/var/run/openvpn-$s.pid" \
SERVICE_PID_FILE="/var/run/openvpn-$s.pid"
service_stop /usr/sbin/openvpn
}
@ -125,7 +125,7 @@ reload_instance() {
section_enabled "$s" || return 1
SERVICE_PID_FILE="/var/run/openvpn-$s.pid" \
SERVICE_PID_FILE="/var/run/openvpn-$s.pid"
service_reload /usr/sbin/openvpn
}