net-vpn/peervpn: use RC_SVCNAME in init script
authorZac Medico <zmedico@gentoo.org>
Sun, 3 Sep 2017 21:57:18 +0000 (14:57 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 3 Sep 2017 21:58:22 +0000 (14:58 -0700)
Package-Manager: Portage-2.3.8, Repoman-2.3.2

net-vpn/peervpn/files/peervpn.initd

index 15390d4e866616b972d8d298ee6f9fba0f9ea284..77d98a9558b0b3d9c1bb50b31d7781e6d1a6656d 100644 (file)
@@ -3,12 +3,12 @@
 # Distributed under the terms of the GNU General Public License v2
 
 description="peervpn server"
-pidfile=${pidfile:-"/run/${SVCNAME}.pid"}
-logfile=${logfile:-"/var/log/${SVCNAME}/${SVCNAME}.log"}
-user=${SVCNAME}
-group=${SVCNAME}
+pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
+logfile=${logfile:-"/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"}
+user=${RC_SVCNAME}
+group=${RC_SVCNAME}
 
-command="/usr/sbin/${SVCNAME}"
+command="/usr/sbin/${RC_SVCNAME}"
 command_args="${command_args:-/etc/peervpn/peervpn.conf}"
 command_background="true"
 # peervpn will drop privileges based on user and group config file settings