openwrt / openwrt/packages

isc-dhcp: dhcrelay4 needs restarting after boot

Open
#22,708 35 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Maintainer: @pprindeville
Environment: x86_64 OpenWrt 23.05.0 r23497-6637af95aa

Description:
I seem to have to restart the dhcrelay4 service after the router is booted in order for it to function. Prior to restarting, even though /usr/sbin/dhcrelay is running it is simply not actually doing any relaying until I run /etc/init.d/dhcrelay4 restart.

I suspect it might be getting started too early in the boot sequence and something it needs is not yet ready/up/etc. Although it's placement at S91 would make that a bit surprising.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting /etc/init.d/dhcrelay4 and the boot ordering around S91, then check how /usr/sbin/dhcrelay is launched during boot. Reproduce the issue on OpenWrt 23.05.0 and compare boot-time behavior with a manual restart. Done means dhcrelay4 relays traffic immediately after boot without requiring a service restart.

Written by the indexing model from the issue text.

Assessment

Domain
networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.