File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ After=docker.target
44
44
Type=simple
45
45
WorkingDirectory=/home/gc/green-metrics-tool/
46
46
ExecStart=/home/gc/green-metrics-tool/venv/bin/python3 /home/gc/green-metrics-tool/tools/client.py
47
- StandardOutput=append:/var/log/green-metrics-client-service.log
48
47
Restart=always
49
48
RestartSec=30s
50
49
TimeoutStopSec=600
@@ -58,8 +57,6 @@ WantedBy=default.target
58
57
59
58
Then activate the service
60
59
` ` ` bash
61
- sudo touch /var/log/green-metrics-client-service.log
62
- sudo chown gc:gc /var/log/green-metrics-client-service.log
63
60
systemctl --user daemon-reload # Reload the systemd configuration
64
61
systemctl --ser enable green-coding-client # enable on boot
65
62
systemctl --user start green-coding-client # start service
@@ -84,7 +81,6 @@ User=gc
84
81
Group=gc
85
82
WorkingDirectory=/home/gc/green-metrics-tool/
86
83
ExecStart=/home/gc/green-metrics-tool/venv/bin/python3 /home/gc/green-metrics-tool/tools/client.py
87
- StandardOutput=append:/var/log/green-metrics-client-service.log
88
84
Restart=always
89
85
RestartSec=30s
90
86
TimeoutStopSec=600
You can’t perform that action at this time.
0 commit comments