From 182dedb6759ddfc6b8059af1a40617196ad32ab5 Mon Sep 17 00:00:00 2001 From: cuu Date: Thu, 28 Jul 2022 14:19:15 +0800 Subject: [PATCH] devterm-printer.service add Restart=on-failure --- .../thermal_printer/etc/systemd/system/devterm-printer.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Code/thermal_printer/etc/systemd/system/devterm-printer.service b/Code/thermal_printer/etc/systemd/system/devterm-printer.service index 0f0812d..bb1dfb6 100644 --- a/Code/thermal_printer/etc/systemd/system/devterm-printer.service +++ b/Code/thermal_printer/etc/systemd/system/devterm-printer.service @@ -8,7 +8,8 @@ EnvironmentFile=/usr/local/etc/devterm-printer StandardOutput=file:/tmp/devterm_printer.log StandardError=file:/tmp/devterm_printer.err.log ExecStart=/usr/local/bin/devterm_thermal_printer.elf - +Restart=on-failure +RestartSec=2 [Install] WantedBy=multi-user.target