bundlewrap/bundles/octoprint/files/octoprint.service

16 lines
380 B
SYSTEMD
Raw Normal View History

2020-09-20 13:05:17 +00:00
[Unit]
Description=OctoPrint
After=network.target
[Service]
User=octoprint
Group=octoprint
Environment="VIRTUAL_ENV=/opt/octoprint/venv"
Environment="PATH=/opt/octoprint/venv/bin:/usr/local/bin:/usr/bin:/bin"
ExecStart=/opt/octoprint/venv/bin/octoprint serve --ipv6 --host ::1 --port 22030
WorkingDirectory=/opt/octoprint
Restart=on-failure
[Install]
WantedBy=multi-user.target