diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2020-04-20 13:03:16 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2020-04-20 13:03:40 +0200 |
commit | ce80d55ef4d991cc3c86bcfb33999d89a5e6c604 (patch) | |
tree | 1f3a4f426448d4b421d098b985bd50fe8a043bde /net-misc/networkmanager/files | |
parent | sys-power/iasl: Keyword ppc64 (diff) | |
download | gentoo-ce80d55ef4d991cc3c86bcfb33999d89a5e6c604.tar.gz gentoo-ce80d55ef4d991cc3c86bcfb33999d89a5e6c604.tar.bz2 gentoo-ce80d55ef4d991cc3c86bcfb33999d89a5e6c604.zip |
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 <polynomial-c@gentoo.org>
Diffstat (limited to 'net-misc/networkmanager/files')
-rw-r--r-- | net-misc/networkmanager/files/init.d.NetworkManager-r1 | 8 |
1 files changed, 7 insertions, 1 deletions
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 <compnerd@compnerd.org> -# 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 |