This is all not very organised and tidy. The init process seems to be
too cautious if there is a PID file left but there should not be any
harm in trying to start the same process twice when in doubt because
after all only one can bind to the same port at a time.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
boot_mesg "Starting OpenVPN N2N connection '${name}'..."
PIDFILE="/var/run/${name}n2n.pid" \
- loadproc /usr/sbin/openvpn --config "${config}"
+ loadproc -f /usr/sbin/openvpn --config "${config}"
}
stop() {
-p "${DPROTOCOL}" --dport "${DDEST_PORT}" -j ACCEPT
boot_mesg "Starting OpenVPN Roadwarrior Server..."
- loadproc /usr/sbin/openvpn \
+ loadproc -f /usr/sbin/openvpn \
--config /var/ipfire/ovpn/server.conf
boot_mesg "Starting OpenVPN Authenticator..."