Skip to content
/ daemon Public

daemon is a tool for running programs in the background.

License

Notifications You must be signed in to change notification settings

vvfly/daemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

daemon

Usually, we use the nohup and & commands to make the program run in the background,
but it is not elegant.

Now you can directly use daemon to make the program run in the background

Installation

go get github.com/vvfly/daemon

Usage

Just import it directly, such as:

package main

import (
	_ "github.com/vvfly/daemon"
	"log"
)

func main() {
	log.Println("server is running")
}

Then compile the program and use:

  • use daemon ./main --daemon=true
  • do not use daemon ./main

About

daemon is a tool for running programs in the background.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published