diff options
author | Roy Marples <roy@marples.name> | 2008-03-02 21:14:01 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-02 21:14:01 +0000 |
commit | 67c5fd6bb8f1d489f7dd012a63a370f20fbe02da (patch) | |
tree | cf413352b5ec98209db226158b2a5113ce14936c /init.d.misc/openvpn.in | |
parent | a12dbdc6c93a7d63591610378e3e570b7c7d2143 (diff) | |
download | openrc-67c5fd6bb8f1d489f7dd012a63a370f20fbe02da.tar.gz openrc-67c5fd6bb8f1d489f7dd012a63a370f20fbe02da.tar.bz2 openrc-67c5fd6bb8f1d489f7dd012a63a370f20fbe02da.tar.xz |
Ensure that our scripts call prefixed runscript.
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 9fbf03c..9e55f42 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}" |