ansible/roles/octoprint/templates/octoprint.service.j2
Thomas Schmid 3dfff93c0e initial commit
Signed-off-by: Thomas Schmid <tom@lfence.de>
2022-01-11 20:29:31 +01:00

16 lines
299 B
Django/Jinja

[Unit]
Description=Octoprint
After=syslog.target
After=network.target
[Service]
RestartSec=2s
Type=simple
User={{ octoprint_user }}
Group={{ octoprint_user }}
WorkingDirectory={{ octoprint_dir }}
ExecStart={{ octoprint_dir }}/bin/octoprint serve
Restart=always
[Install]
WantedBy=multi-user.target