Skip to content

Instantly share code, notes, and snippets.

View phuocglh's full-sized avatar

phuocglh phuocglh

View GitHub Profile
@phuocglh
phuocglh / sighup.go
Created August 15, 2019 08:37 — forked from andelf/sighup.go
golang process SIGHUP, HUP signal to reload configuration
// program
package main
import "os/signal"
import "os"
import "fmt"
import "syscall"
import "time"
@phuocglh
phuocglh / sighup.go
Created August 15, 2019 07:02 — forked from JustAdam/sighup.go
Go: Handling HUP signal - reloading configuration settings while running
package main
import (
"bufio"
"fmt"
"log"
"os"
"os/signal"
"sync"
"syscall"