go-daemon | Utility to daemonize '' Go programs
kandi X-RAY | go-daemon Summary
kandi X-RAY | go-daemon Summary
go-daemon is a C library. go-daemon has no bugs, it has no vulnerabilities and it has low support. However go-daemon has a Non-SPDX License. You can download it from GitHub.
Go daemon (or just god) is a utility to "daemonize" Go programs that originally only run in foreground and write logs to the console. Go daemon can turn these programs into daemons by managing essential aspects of their execution. The process of making a program become a daemon has very peculiar steps and can be done outside the code. This is what god is for. It executes a program for you doing things that daemons do: switch to another user and group, switch the directory of execution, detach from the terminal and create a pid file. While the program runs, god consumes its output (stdout and stderr) and write to a log file using minimum system resources. It also handles all signals (SIGINT, SIGTERM, etc) and forward them to the program being managed. On SIGHUP, god recycles its log file making it easy to integrate with logrotate. If SIGHUP is not supported by your program, god can handle the signal itself and not forward it, making your program immune to hangups. Go daemon is inspired by twistd, but primarily for running servers written in the Go Programming Language that don't (or just can't) care about daemonizing. However, it can also be used for running php, python and any other type of long lived programs that need to be daemonized.
Go daemon (or just god) is a utility to "daemonize" Go programs that originally only run in foreground and write logs to the console. Go daemon can turn these programs into daemons by managing essential aspects of their execution. The process of making a program become a daemon has very peculiar steps and can be done outside the code. This is what god is for. It executes a program for you doing things that daemons do: switch to another user and group, switch the directory of execution, detach from the terminal and create a pid file. While the program runs, god consumes its output (stdout and stderr) and write to a log file using minimum system resources. It also handles all signals (SIGINT, SIGTERM, etc) and forward them to the program being managed. On SIGHUP, god recycles its log file making it easy to integrate with logrotate. If SIGHUP is not supported by your program, god can handle the signal itself and not forward it, making your program immune to hangups. Go daemon is inspired by twistd, but primarily for running servers written in the Go Programming Language that don't (or just can't) care about daemonizing. However, it can also be used for running php, python and any other type of long lived programs that need to be daemonized.
Support
Quality
Security
License
Reuse
Support
go-daemon has a low active ecosystem.
It has 152 star(s) with 34 fork(s). There are 18 watchers for this library.
It had no major release in the last 12 months.
There are 1 open issues and 5 have been closed. On average issues are closed in 228 days. There are 1 open pull requests and 0 closed requests.
It has a neutral sentiment in the developer community.
The latest version of go-daemon is v1.3
Quality
go-daemon has 0 bugs and 0 code smells.
Security
go-daemon has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
go-daemon code analysis shows 0 unresolved vulnerabilities.
There are 0 security hotspots that need review.
License
go-daemon has a Non-SPDX License.
Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.
Reuse
go-daemon releases are available to install and integrate.
Installation instructions are not available. Examples and code snippets are available.
Top functions reviewed by kandi - BETA
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of go-daemon
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of go-daemon
go-daemon Key Features
No Key Features are available at this moment for go-daemon.
go-daemon Examples and Code Snippets
No Code Snippets are available at this moment for go-daemon.
Community Discussions
Trending Discussions on go-daemon
QUESTION
How to restart itself in Go daemon process?
Asked 2021-Jul-03 at 06:10
I use go-daemon library to fork process and run it in background. And I need to restart the daemon process after update performed from within http handler.
The handler code is
...ANSWER
Answered 2021-Jun-30 at 23:06I assume you mean restarting the currently running Go binary. You can use a syscall for unix-based systems, and use an exec.Command
for Windows.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install go-daemon
You can download it from GitHub.
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page