octoprint/files/octoprint.service
author Luke Hoersten <luke@hoersten.org>
Sun, 23 Jul 2023 14:28:28 -0500
changeset 220 16226c249f6f
parent 193 fd46c0e68c2c
permissions -rw-r--r--
Minor fixes.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
193
fd46c0e68c2c Initial octoprint role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
[Unit]
fd46c0e68c2c Initial octoprint role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
Description=Octoprint
fd46c0e68c2c Initial octoprint role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
After=network.target
fd46c0e68c2c Initial octoprint role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
fd46c0e68c2c Initial octoprint role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
[Service]
fd46c0e68c2c Initial octoprint role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
Environment="LC_ALL=C.UTF-8"
fd46c0e68c2c Initial octoprint role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
Environment="LANG=C.UTF-8"
fd46c0e68c2c Initial octoprint role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
User=octoprint
fd46c0e68c2c Initial octoprint role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
Group=octoprint
fd46c0e68c2c Initial octoprint role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
WorkingDirectory=/opt/octoprint/
fd46c0e68c2c Initial octoprint role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
ExecStart=/usr/local/bin/octoprint
fd46c0e68c2c Initial octoprint role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
fd46c0e68c2c Initial octoprint role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
[Install]
fd46c0e68c2c Initial octoprint role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
WantedBy=multi-user.target