-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlinux.go
More file actions
32 lines (25 loc) · 712 Bytes
/
linux.go
File metadata and controls
32 lines (25 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//go:build LINUX
// +build LINUX
package main
import (
"errors"
)
func IsService(name string) error {
return nil
}
func removeService(name string) error {
err := errors.New("--service.remove is not supprted in Linux!")
return err
}
func startService(name string) error {
err := errors.New("--service.start is not supprted in Linux!")
return err
}
func controlService(name string, command string) error {
err := errors.New("--service." + command + "is not supprted in Linux!")
return err
}
func installService(name, desc string, logpath string, metricsPath string, port string) error {
err := errors.New("--service.install is not supprted in Linux!")
return err
}