devterm-printer.service add Restart=on-failure

This commit is contained in:
cuu 2022-07-28 14:19:15 +08:00
parent 9d324569c2
commit 182dedb675

View File

@ -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