From 850d4492909e2faddaa8412245bab8f4f6a049ae Mon Sep 17 00:00:00 2001 From: Sophist <3001893+Sophist-UK@users.noreply.github.com> Date: Thu, 31 Dec 2020 22:42:25 +0000 Subject: [PATCH] Change service type to exec... ... so that `systemctl start octoprint` will report an error if octoprint cannot be started. See `man systemd.service` for explanation. --- scripts/octoprint.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/octoprint.service b/scripts/octoprint.service index 14f5d7f4b..ae5405c34 100644 --- a/scripts/octoprint.service +++ b/scripts/octoprint.service @@ -6,7 +6,7 @@ Wants=network-online.target [Service] Environment="LC_ALL=C.UTF-8" Environment="LANG=C.UTF-8" -Type=simple +Type=exec User=pi ExecStart=/home/pi/OctoPrint/venv/bin/octoprint