/demon-go

Run any command or script as a daemon.

Primary LanguageGoMozilla Public License 2.0MPL-2.0

demon

godoc goreportcard

Install

From console:

bash <(curl -s https://raw.githubusercontent.com/117/demon/master/install.sh)

Example

Use the spawn command to daemonize a script or executable.

$ demon spawn ./my-executable
A new demon has been spawned with PID 12345.

View running daemons with the list command.

$ demon list
PID  	Uptime       	Exec 	Command
64390	2 seconds ago	demon	./my-executable

Contributing

Pull requests are encouraged.