Files
OctoPrint/scripts
Josh Friend fedbbdf3fb Set LC_ALL and LANG when starting octoprint
Fixes errors from Click about ASCII encoding:

    RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment
    This system supports the C.UTF-8 locale which is recommended. You might be able to resolve your issue by exporting the follow
        export LC_ALL=C.UTF-8
        export LANG=C.UTF-8
2020-04-18 19:12:43 -04:00
..

init/systemd files for OctoPrint.

Assumes OctoPrint is installed under user pi at /home/pi/OctoPrint/venv/bin/octoprint. If you have a different setup you'll need to adjust octoprint.default (init) or octoprint.service (systemd) accordingly.

init

Download the init.d files to the locations shown:

octoprint.default   => /etc/default/octoprint
octoprint.init      => /etc/init.d/octoprint

Next, enable and start the octoprint service:

# Enable octoprint service
sudo update-rc.d octoprint defaults

# and start it
sudo service octoprint start

systemd

Download the systemd files to the locations shown:

octoprint.service   => /etc/systemd/system/octoprint.service

Next, enable and start the octoprint service:

# Enable octoprint service
sudo systemctl enable octoprint

# and start it
sudo systemctl start octoprint