jpillora / jpillora/chisel

Add systemd notify support

Open
#164 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
16.6k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

It would be helpful to add systemd notify support to make it easier to daemonize the server and client processes.

The notification would happen once the tunnel is up and running, ready to forward the TCP traffic.
So, the server would notify when clients can start connecting, and clients would notify when the connection to the server has been established and forwarded ports can start accepting traffic.

We can do this with github.com/coreos/go-systemd/daemon.

import (
  "github.com/coreos/go-systemd/daemon"
)

func whatever() {
  // get ready to accept connections then tell systemd when ready
  daemon.SdNotify(false, "READY=1")
}

Contributor guide

No contributing guide indexed for this repository

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

No files or tests are named. Start by locating the server and client startup paths, then review github.com/coreos/go-systemd/daemon and the existing readiness flow. Done means the server notifies systemd when clients can connect, and each client notifies when forwarding is ready.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.