octoprint/files/octoprint.service
author Luke Hoersten <luke@hoersten.org>
Sat, 10 Sep 2022 14:52:58 -0500
changeset 193 fd46c0e68c2c
permissions -rw-r--r--
Initial octoprint role.
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