Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/117/demon-go
Run any command or script as a daemon.
https://github.com/117/demon-go
daemon daemonize demon forever go golang
Last synced: 21 days ago
JSON representation
Run any command or script as a daemon.
- Host: GitHub
- URL: https://github.com/117/demon-go
- Owner: 117
- License: mpl-2.0
- Created: 2019-09-09T00:22:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T04:05:14.000Z (almost 2 years ago)
- Last Synced: 2024-06-21T20:06:44.668Z (6 months ago)
- Topics: daemon, daemonize, demon, forever, go, golang
- Language: Go
- Homepage:
- Size: 6.06 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# demon
[![godoc](https://godoc.org/github.com/117/demon?status.svg)](https://godoc.org/github.com/117/demon)
[![goreportcard](https://goreportcard.com/badge/github.com/117/demon)](https://goreportcard.com/report/github.com/117/demon)## Install
From console:
```console
bash <(curl -s https://raw.githubusercontent.com/117/demon/master/install.sh)
```## Example
Use the spawn command to daemonize a script or executable.
```console
$ demon spawn ./my-executable
A new demon has been spawned with PID 12345.
```View running daemons with the list command.
```console
$ demon list
PID Uptime Exec Command
64390 2 seconds ago demon ./my-executable
```## Contributing
Pull requests are encouraged.