集群可以设置systemd系统服务

This commit is contained in:
GoEdgeLab
2021-01-11 18:16:15 +08:00
parent 5edef48d3a
commit 93d911b10b
11 changed files with 711 additions and 9 deletions

View File

@@ -0,0 +1,12 @@
package utils
import (
teaconst "github.com/TeaOSLab/EdgeNode/internal/const"
"testing"
)
func TestServiceManager_Log(t *testing.T) {
manager := NewServiceManager(teaconst.ProductName, teaconst.ProductName+" Server")
manager.Log("Hello, World")
manager.LogError("Hello, World")
}