Browse Source

devterm-printer.service with EnvironmentFile=/usr/local/etc/devterm-printer

cuu 2 years ago
parent
commit
c84a67e698

+ 1 - 0
Code/thermal_printer/etc/systemd/system/devterm-printer.service

@@ -4,6 +4,7 @@ After=devterm-socat
 
 [Service]
 Type=simple
+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

+ 1 - 0
Code/thermal_printer/usr/local/etc/devterm-printer

@@ -0,0 +1 @@
+TTF=/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc