We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a804eb2 commit 476f2f8Copy full SHA for 476f2f8
1 file changed
internals/wol/wol.go
@@ -50,7 +50,6 @@ func doActivityCheck(threshold int) {
50
for query, lastTime := range lastActivities {
51
if currentTime - lastTime > threshold64 {
52
logger.Info("Containers with ", query, " have been flagged for Inactivity")
53
- logger.Debug("Stopping Containers with ", query)
54
55
ids := containerIDs[query]
56
resetLastActivity(query)
@@ -59,8 +58,10 @@ func doActivityCheck(threshold int) {
59
58
continue
60
}
61
+ logger.Debug("Stopping Containers with ", query)
62
+
63
for _, id := range ids {
- if getLabel(id, WOL_AUTOSTOP) == "true" {
64
+ if strings.ToLower(getLabel(id, WOL_AUTOSTOP)) != "false" {
65
_, err := docker.StopContainer(id, client.ContainerStopOptions{})
66
67
if err != nil {
0 commit comments