[Agent] [Executor] 新增Systemd的部分

This commit is contained in:
zeaslity
2023-10-19 15:48:04 +08:00
parent 328247eeae
commit d9c1c0fb91
4 changed files with 133 additions and 14 deletions

View File

@@ -47,3 +47,13 @@ func TestBasicSystemdShutdown(t *testing.T) {
t.Logf("result ok is %v resultLog is %v", ok, resultLog)
}
func TestBasicSystemdUp(t *testing.T) {
//ok, resultLog := BasicSystemdUp("docker.service")
//ok, resultLog := BasicSystemdUp("docker")
ok, resultLog := BasicSystemdUp("fwd")
t.Logf("result ok is %v resultLog is %v", ok, resultLog)
}