Skip to content

Commit d0a2705

Browse files
gferrarogferraro
andauthored
set classifier service to restart only on failure (#486)
Co-authored-by: gferraro <g.ferraro22@gmail.com>
1 parent 1617db2 commit d0a2705

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tc2/thermal-recorder-py/thermal-classifier.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ After=multi-user.target
55
[Service]
66
Type=simple
77
ExecStart=/home/pi/.venv/classifier/bin/serve_model
8-
Restart=always
8+
Restart=on-failure
99
RestartSec=3s
1010

1111
[Install]

0 commit comments

Comments
 (0)