diff options
Diffstat (limited to 'init.d.misc/openvpn.in')
-rw-r--r-- | init.d.misc/openvpn.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/init.d.misc/openvpn.in b/init.d.misc/openvpn.in index 9fbf03cc..9e55f42b 100644 --- a/init.d.misc/openvpn.in +++ b/init.d.misc/openvpn.in @@ -1,14 +1,14 @@ -#!/sbin/runscript +#!@PREFIX@/sbin/runscript # Copyright 2007-2008 Roy Marples <roy@marples.name> # All rights reserved. Released under the 2-clause BSD license. vpn=${SVCNAME#*.} name="OpenVPN" [ "${vpn}" != "openvpn" ] && name="${name} (${vpn})" -command=@PREFIX@/sbin/openvpn +command=@PKG_PREFIX@/sbin/openvpn pidfile=@VARBASE@/run/"${SVCNAME}".pid -openvpn_dir=${openvpn_dir:-@PREFIX@/etc/openvpn} +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}" required_dirs="${openvpn_dir}" |