ansible/roles/octoprint/templates/ustreamer.service.j2

19 lines
367 B
Django/Jinja

[Unit]
Description=Ustreamer
After=syslog.target
After=network.target
[Service]
RestartSec=2s
Type=simple
User={{ octoprint_user }}
Group={{ octoprint_user }}
{% if octoprint_ustreamer_args is defined %}
ExecStart=/usr/bin/ustreamer {{octoprint_ustreamer_args}}
{% else %}
ExecStart=/usr/bin/ustreamer
{% endif %}
Restart=always
[Install]
WantedBy=multi-user.target