Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.