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>
This commit is contained in:
Konstantin Menyaev 2022-09-05 04:09:13 +03:00 committed by Yann E. MORIN
parent 2bc9cac446
commit f73718ce5e
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
DAEMON=/sbin/dhcpcd
CONFIG=/etc/dhcpcd.conf
PIDFILE=/var/run/dhcpcd.pid
PIDFILE=/var/run/dhcpcd/pid
[ -f $CONFIG ] || exit 0

View File

@ -5,7 +5,7 @@ After=network.target
[Service]
Type=forking
EnvironmentFile=-/etc/default/dhcpcd
PIDFile=/run/dhcpcd.pid
PIDFile=/run/dhcpcd/pid
ExecStart=/sbin/dhcpcd $DAEMON_ARGS
Restart=always