service: move System methods to global functions.

This commit is contained in:
Daniel Theophanes
2015-01-18 16:36:42 -08:00
parent d3ed54b2d3
commit b7b2695e94
2 changed files with 26 additions and 11 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ type program struct {
}
func (p *program) Start(s service.Service) error {
if service.Local.Interactive() {
if service.Interactive() {
logger.Info("Running in terminal.")
} else {
logger.Info("Running under service manager.")
@@ -34,7 +34,7 @@ func (p *program) Start(s service.Service) error {
return nil
}
func (p *program) run() error {
logger.Infof("I'm running %v.", service.Local)
logger.Infof("I'm running %v.", service.Platform())
ticker := time.NewTicker(2 * time.Second)
for {
select {