From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D0F581382C5 for ; Tue, 10 Apr 2018 11:25:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 94CC5E096F; Tue, 10 Apr 2018 11:25:46 +0000 (UTC) Received: from synchrony.c-14.de (synchrony.c-14.de [88.99.86.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2784FE094B for ; Tue, 10 Apr 2018 11:25:45 +0000 (UTC) Received: from sardaukar.c-14.de (HSI-KBW-134-3-95-137.hsi14.kabel-badenwuerttemberg.de [134.3.95.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by synchrony.c-14.de (Postfix) with ESMTPSA id CC0249939B for ; Tue, 10 Apr 2018 11:25:43 +0000 (UTC) Date: Tue, 10 Apr 2018 13:25:42 +0200 From: Simon Thelen To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] openvpn rc script dependencies Message-ID: <20180410112541.GA4335@anonymous> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <20180410085536.7evacee4ccruwzeq@christoph-lap> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180410085536.7evacee4ccruwzeq@christoph-lap> User-Agent: Mutt/1.9.4 (2018-02-28) X-Archives-Salt: 524ff77b-4776-4617-bdae-49eff154a7ae X-Archives-Hash: 1772d4e60eec4c8641dfd64905092aee On 18-04-10 at 10:55, Christoph Böhmwalder wrote: > I was wondering how the OpenRC dependencies between start scripts work. > > Basically, I have two network interfaces on my laptop (wlp3s0 and > enp0s20u2u3 for wireless and ethernet respectively). When I start the > wireless interface service (rc-service net.wlp3s0 start) the OpenVPN > service starts and vice versa. That's great, but I didn't configure > that anywhere. What does your /etc/runlevels/ look like? Is the openvpn service in one of the runlevels? Are either of your network interfaces in one of the runlevels? > What's even worse is that when I'm not connected via WiFi (i.e. > ethernet), the VPN service won't start because net.wlp3s0 isn't started: [..] > Why would it do that, can I configure this anywhere? Also check /etc/rc.conf and try setting rc_depend_strict="NO". I do wish there were a way to modify require/provides without having to edit the init scripts themselves. -- Simon Thelen