Add systemd notify support
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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