From ce80d55ef4d991cc3c86bcfb33999d89a5e6c604 Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Mon, 20 Apr 2020 13:03:16 +0200 Subject: [PATCH] net-misc/networkmanager: Make sure /run/NetworkManager dir is available Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Lars Wendler --- net-misc/networkmanager/files/init.d.NetworkManager-r1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/net-misc/networkmanager/files/init.d.NetworkManager-r1 b/net-misc/networkmanager/files/init.d.NetworkManager-r1 index 3209644c511f..5bd0806eec33 100644 --- a/net-misc/networkmanager/files/init.d.NetworkManager-r1 +++ b/net-misc/networkmanager/files/init.d.NetworkManager-r1 @@ -1,6 +1,6 @@ #!/sbin/openrc-run # Copyright (c) 2008 Saleem Abdulrasool -# Copyright 2013-2017 Gentoo Foundation +# Copyright 2013-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 description="NetworkManager daemon. The service is marked as started only \ @@ -12,6 +12,12 @@ depend() { provide net } +start_pre() { + # Make sure we have /run/NetworkManager available or else + # service is seen as crashed by openrc because of missing pidfile + checkpath -q -d /run/NetworkManager +} + start() { # If we are re-called by a dispatcher event, we want to mark the service # as started without starting the daemon again -- 2.26.2