From b079674fe61913b7e2d4ff8acbe56cb64479445b Mon Sep 17 00:00:00 2001 From: paukstelis Date: Sat, 27 Feb 2021 09:04:14 -0500 Subject: [PATCH] add generic service file --- octoprint_generic.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 octoprint_generic.service diff --git a/octoprint_generic.service b/octoprint_generic.service new file mode 100644 index 0000000..57b2552 --- /dev/null +++ b/octoprint_generic.service @@ -0,0 +1,17 @@ +[Unit] +Description=The snappy web interface for your 3D printer +After=network.online.target +Wants=network.online.target + +[Service] +Environment="HOST=127.0.0.1" +Environment="PORT=NEWPORT" +Environment="BASEDIR=OCTOCONFIG/.NEWINSTANCE" +Environment="CONFIGFILE=OCTOCONFIG/.NEWINSTANCE/config.yaml" +Environment="EXEC=OCTOPATH" +Type=simple +User=OCTOUSER +ExecStart=${EXEC} serve --config=${CONFIGFILE} --basedir=${BASEDIR} --host=${HOST} --port=${PORT} + +[Install] +WantedBy=multi-user.target