mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
package/dhcpcd: fix pid path
From the README:
dhcpcd-9 defaults the run directory to `/var/run/dhcpcd` instead of
`/var/run` and the prefix of dhcpcd has been removed from the files.
Make it so.
Signed-off-by: Konstantin Menyaev <KAMenyaev@sberdevices.ru>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit f73718ce5e)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
e8e4dbe915
commit
7d9e9e631c
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
DAEMON=/sbin/dhcpcd
|
DAEMON=/sbin/dhcpcd
|
||||||
CONFIG=/etc/dhcpcd.conf
|
CONFIG=/etc/dhcpcd.conf
|
||||||
PIDFILE=/var/run/dhcpcd.pid
|
PIDFILE=/var/run/dhcpcd/pid
|
||||||
|
|
||||||
[ -f $CONFIG ] || exit 0
|
[ -f $CONFIG ] || exit 0
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ After=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
EnvironmentFile=-/etc/default/dhcpcd
|
EnvironmentFile=-/etc/default/dhcpcd
|
||||||
PIDFile=/run/dhcpcd.pid
|
PIDFile=/run/dhcpcd/pid
|
||||||
ExecStart=/sbin/dhcpcd $DAEMON_ARGS
|
ExecStart=/sbin/dhcpcd $DAEMON_ARGS
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user