Skip to content

LawyZheng/daemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Daemon

Daemon is an easy to start application as a system service.

Installation

go get github.com/lawyzheng/daemon

Quick Start

  • Simple Example

ctl, err := NewController(app, &service.Config{
		Name:             "My Service Name",       
		DisplayName:      "My Service Display Name", 
		Description:      "My Service Discription",           
	})

if err != nil {
    // handler error
	panic(err)
}


// Install Service
ctl.Install()

// Uninstall Service
ctl.Uninstall()

// Start Service
ctl.Start()

// Stop Service
ctl.Stop()

// Restart Service
ctl.Restart()

// Run Service
ctl.Run()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages