aboutsummaryrefslogtreecommitdiff
path: root/init.d.misc/openvpn.in
diff options
context:
space:
mode:
Diffstat (limited to 'init.d.misc/openvpn.in')
-rw-r--r--init.d.misc/openvpn.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.d.misc/openvpn.in b/init.d.misc/openvpn.in
index 9e55f42b..4f60b83a 100644
--- a/init.d.misc/openvpn.in
+++ b/init.d.misc/openvpn.in
@@ -2,12 +2,12 @@
# Copyright 2007-2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
-vpn=${SVCNAME#*.}
+vpn=${RC_SVCNAME#*.}
name="OpenVPN"
[ "${vpn}" != "openvpn" ] && name="${name} (${vpn})"
command=@PKG_PREFIX@/sbin/openvpn
-pidfile=@VARBASE@/run/"${SVCNAME}".pid
+pidfile=@VARBASE@/run/"${RC_SVCNAME}".pid
openvpn_dir=${openvpn_dir:-@PKG_PREFIX@/etc/openvpn}
openvpn_config=${openvpn_config:-${openvpn_dir}/${vpn}.conf}
command_args="${openvpn_args} --daemon --config ${openvpn_config} --writepid ${pidfile}"