Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • aports aports
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
  • Issues 660
    • Issues 660
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 322
    • Merge requests 322
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • alpinealpine
  • aportsaports
  • Merge requests
  • !40973

main/hostapd: make initd script more flexible

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Dominique Martinet requested to merge martinetd/aports:hostapd_init into master Nov 02, 2022
  • Overview 1
  • Commits 2
  • Pipelines 6
  • Changes 3

We don't actually need an explicit start/stop function here as all the script does is running start-stop-daemon.

Modernise the service by using command/command_args variables, which also has the side benefit of allowing easy support of alternative supervisor if e.g. one wants to auto-restart hostapd on error (which might be useful to ensure it is always up, avoiding locking oneself out...), it is now as simple as this snippet in /etc/conf.d/hostapd:

supervisor=supervise-daemon
supervise_daemon_args="--respawn-delay 3"

I've checked this works for me™, but afaiu we're getting close to the 3.17 split so happy to wait after that's done to merge this -- leaving it to you.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: hostapd_init