Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
#!/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 \
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