summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-05-18 10:42:30 +0200
committerThomas Haller <thaller@redhat.com>2019-05-18 12:16:36 +0200
commit25512fb5c11debb49c0ecb34ebf19499357f2acc (patch)
tree5017ed5d4f39d16d75f348319454f913762b0d7c
parent041aa3d60576dd30fe52e1b01c88b079ec827f66 (diff)
downloadNetworkManager-th/dhclient-pid-file.tar.gz
dhcp: store dhclient's pid file in /var/run/NetworkManager instead of /var/runth/dhclient-pid-file
The pid-file is private to NetworkManager. It should reside in NetworkManager's run directory instead of "/var/run". I don't think that changing this location can break existing uses. Why would somebody outside of NetworkManager care about this file?
-rw-r--r--src/dhcp/nm-dhcp-dhclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcp/nm-dhcp-dhclient.c b/src/dhcp/nm-dhcp-dhclient.c
index b655a1ebe3..2760825262 100644
--- a/src/dhcp/nm-dhcp-dhclient.c
+++ b/src/dhcp/nm-dhcp-dhclient.c
@@ -376,7 +376,7 @@ dhclient_start (NMDhcpClient *client,
iface = nm_dhcp_client_get_iface (client);
uuid = nm_dhcp_client_get_uuid (client);
- pid_file = g_strdup_printf (RUNSTATEDIR "/dhclient%s-%s.pid",
+ pid_file = g_strdup_printf (NMRUNDIR "/dhclient%s-%s.pid",
_addr_family_to_path_part (addr_family),
iface);