From c84a67e698e005850baa6fe4c0efd943e5d90cbf Mon Sep 17 00:00:00 2001 From: cuu Date: Fri, 11 Mar 2022 06:01:59 -0600 Subject: [PATCH] devterm-printer.service with EnvironmentFile=/usr/local/etc/devterm-printer --- Code/thermal_printer/etc/systemd/system/devterm-printer.service | 1 + Code/thermal_printer/usr/local/etc/devterm-printer | 1 + 2 files changed, 2 insertions(+) create mode 100644 Code/thermal_printer/usr/local/etc/devterm-printer diff --git a/Code/thermal_printer/etc/systemd/system/devterm-printer.service b/Code/thermal_printer/etc/systemd/system/devterm-printer.service index f4e93ac..0f0812d 100644 --- a/Code/thermal_printer/etc/systemd/system/devterm-printer.service +++ b/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 diff --git a/Code/thermal_printer/usr/local/etc/devterm-printer b/Code/thermal_printer/usr/local/etc/devterm-printer new file mode 100644 index 0000000..1ac3fd4 --- /dev/null +++ b/Code/thermal_printer/usr/local/etc/devterm-printer @@ -0,0 +1 @@ +TTF=/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc