moving this somewhere else
This commit is contained in:
parent
e11c38dd49
commit
a057c65a02
@ -13,8 +13,6 @@ package agent
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
|
||||||
"path/filepath"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
rmm "github.com/amidaware/rmmagent/shared"
|
rmm "github.com/amidaware/rmmagent/shared"
|
||||||
@ -78,15 +76,4 @@ func (a *Agent) KillHungUpdates() {
|
|||||||
KillProc(int32(p.PID))
|
KillProc(int32(p.PID))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
err = os.Chdir(a.ProgramDir)
|
|
||||||
if err == nil {
|
|
||||||
files, err := filepath.Glob("is-*.tmp")
|
|
||||||
if err == nil {
|
|
||||||
for _, f := range files {
|
|
||||||
a.Logger.Debugln("KillHungUpdates() Removing file:", f)
|
|
||||||
os.Remove(f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user