Browse Source

Add a systemd unit for octoprint

main
Daniele Tricoli 4 months ago
parent
commit
be9042b86e
  1. 15
      roles/octoprint/templates/etc/systemd/system/octoprint.service.j2

15
roles/octoprint/templates/etc/systemd/system/octoprint.service.j2

@ -0,0 +1,15 @@
# Managed by Ansible
[Unit]
Description=OctoPrint
After=network-online.target
Wants=network-online.target
[Service]
# WorkingDirectory={{ octoprint_dir }}
ExecStart={{ octoprint_dir }}/bin/octoprint serve
User=octoprint
Group=octoprint
Restart=on-failure
[Install]
WantedBy=multi-user.target
Loading…
Cancel
Save