From 47b29ffe1f17cf84a3b0e2bd051c941644b42a0b Mon Sep 17 00:00:00 2001 From: xbr Date: Mon, 8 Jul 2024 22:01:29 +0200 Subject: [PATCH] correct user group cwd binary for Pi system --- labelapi.service | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/labelapi.service b/labelapi.service index c54156a..d1f6732 100644 --- a/labelapi.service +++ b/labelapi.service @@ -1,17 +1,17 @@ [Unit] Description=Label Maker API -ConditionPathExists=/home/mattronix/escpos-go-labels +ConditionPathExists=/home/pi/escpos-go-labels After=network.target [Service] Type=simple -User=mattronix -Group=mattronix -WorkingDirectory=/home/mattronix/escpos-go-labels -ExecStart=/usr/bin/go run main.go +User=pi +Group=lp +WorkingDirectory=/home/pi/escpos-go-labels +ExecStart=/usr/local/go/bin/go run main.go Restart=on-failure RestartSec=10 StandardOutput=syslog StandardError=syslog SyslogIdentifier=labelapi [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target