Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Start ¶
func Start(serviceMain MainFunction)
daemon start, supply a go-service.MainFunction() in place of a normal main() function
parses startup arguments
pidfile=/path/to/pidfile if not supplied runs like a normal executable
cfgfile=/path/to/cfgfile this gets passed back to serviceMain for the user to config their service function also checks that file exists if a non-empty string is passed and throws a fatal error otherwise
Types ¶
type MainFunction ¶
Service main function
argument string is the path to a config file supplied in startup arguments argument logger is a log.Logger object, if run as a service logs to syslog
Click to show internal directories.
Click to hide internal directories.