Received: from uta.volatile.bz (uta.volatile.bz [5.181.158.12]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 6717D7810F0 for <~alpine/aports@lists.alpinelinux.org>; Tue, 14 Dec 2021 12:34:56 +0000 (UTC) Received: from mahin.wowana.me (unknown [IPv6:2600:8805:3800:1ed5::eac]) by uta.volatile.bz (Postfix) with ESMTPSA id CCD8725A806; Tue, 14 Dec 2021 12:29:40 +0000 (-00) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wowana.me; s=default; t=1639484981; bh=ZQdMvCFp4jUqsasV8IFO2pXIWxHPQfYuL7E0DH65aQc=; h=From:To:Cc:Subject:Date; b=FNWirIIgEl0PDj7pHjfYTkt22nwV/8kveqZ4oEcurxyBEU3OHr9gcGZLsGQhj7hIf myq7WliUmGsVif+rB6ddwI0kvnJlhwdIhKad0zQdzKUkqwxgl2vTcyf41hcCnnvq6d SDE3rHq0fWKgRe0NqnFwA+2mX+6ttWiKvxvtqaIY= From: opal hart To: ~alpine/aports@lists.alpinelinux.org Cc: opal hart Subject: [PATCH] main/dhcpcd: fix rundir and pidfile Date: Tue, 14 Dec 2021 12:29:28 +0000 Message-Id: <20211214122928.11915-1-opal@wowana.me> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit dhcpcd does not write a pidfile to /run/dhcpcd.pid; this may have been true in the past, but now it directly writes files (pid, sock, ...) to the configured rundir. Configure with --rundir=/run/dhcpcd as Gentoo ebuild for net-misc/dhcpcd does, and direct the initscript to /run/dhcpcd/pid for pidfile. --- main/dhcpcd/APKBUILD | 4 ++-- main/dhcpcd/dhcpcd.initd | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main/dhcpcd/APKBUILD b/main/dhcpcd/APKBUILD index 269a068ca9..3a7d18d1b1 100644 --- a/main/dhcpcd/APKBUILD +++ b/main/dhcpcd/APKBUILD @@ -3,7 +3,7 @@ # Maintainer: Natanael Copa pkgname=dhcpcd pkgver=9.4.1 -pkgrel=0 +pkgrel=1 pkgdesc="RFC2131 compliant DHCP client" url="https://roy.marples.name/projects/dhcpcd" arch="all" @@ -26,7 +26,7 @@ build() { --localstatedir=/var \ --libexecdir=/usr/lib/$pkgname \ --dbdir=/var/lib/$pkgname \ - --rundir=/run \ + --rundir=/run/dhcpcd \ --enable-ipv6 \ --without-dev \ --without-udev diff --git a/main/dhcpcd/dhcpcd.initd b/main/dhcpcd/dhcpcd.initd index aab118242e..217d03ee21 100644 --- a/main/dhcpcd/dhcpcd.initd +++ b/main/dhcpcd/dhcpcd.initd @@ -5,7 +5,7 @@ description="DHCP Client Daemon" command="/sbin/dhcpcd" command_args="-q ${command_args:-}" command_args_foreground="-B" -pidfile="/run/dhcpcd.pid" +pidfile="/run/dhcpcd/pid" depend() { provide net -- 2.32.0