hashicorp / hashicorp/consul-template
Missing Syscall Signals like SIGRTMIN/SIGRTMAX
- Dominant language
- Go
- Stars
- 4.8k
- Forks
- 801
- Avg merge
- 4h 5m
- Merged PRs (30d)
- 6
Description
**Dependency Follow**
[Hashicorp Nomad Client](https://github.com/hashicorp/nomad/blob/main/client/fingerprint/signal.go) ---> [consul-templates](https://github.com/hashicorp/consul-template/blob/main/signals/signals.go)
**Problem**
[Hashicorp Nomad Client](https://github.com/hashicorp/nomad/blob/main/client/fingerprint/signal.go) is using this project to discover Unix OS signal via [consul-template/blob/main/signals/signals.go](https://github.com/hashicorp/consul-template/blob/main/signals/signals.go) and [Consul Templates Unix Signals](https://github.com/hashicorp/consul-template/blob/main/signals/signals_unix.go).
In my use-case where I am running [Apache Impala](https://impala.apache.org/) which is using `SIGRTMIN` as [graceful shutdown signal](https://github.com/apache/impala/blob/master/bin/graceful_shutdown_backends.sh#L45). I can't send this signal via Hashicorp Nomad Job since its not being discovered by Client and Hashicorp Client doesn't implement any specific logic to find supported signals.
**PR Request**
If someone have knowledge about OS Signals and Golang, please add this support in this project so it can be automatically being added to Hashicorp Nomad.
Contributor guide
Research direction
Start by reading consul-template/signals/signals.go and signals_unix.go, then compare how Hashicorp Nomad discovers Unix signals through those entry points. Verify how SIGRTMIN and SIGRTMAX should be represented for the Apache Impala shutdown use case, and confirm that Nomad can discover and send them when the work is complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100