support/init.d.examples: Do not use @PKG_PREFIX@ in service examples

I can't think of a reason to do this since these scripts are just
examples.

This is for #474.
This commit is contained in:
William Hubbs
2021-11-28 23:55:42 -06:00
parent cc0037e9ca
commit 331d6f14fd
7 changed files with 8 additions and 8 deletions

View File

@@ -12,10 +12,10 @@
vpn=${RC_SVCNAME#*.}
name="OpenVPN"
[ "$vpn" != openvpn ] && name="$name ($vpn)"
command=@PKG_PREFIX@/sbin/openvpn
command=/sbin/openvpn
pidfile=/var/run/"$RC_SVCNAME".pid
: ${openvpn_dir:=@PKG_PREFIX@/etc/openvpn}
: ${openvpn_dir:=/etc/openvpn}
: ${openvpn_config:=$openvpn_dir/$vpn.conf}
command_args="$openvpn_args --daemon --config $openvpn_config"
command_args="$command_args --writepid $pidfile"