ansible/roles/freepbx/templates/yealink-xml-browser.service.j2

18 lines
483 B
Plaintext
Raw Normal View History

[Unit]
Description=Yealink XML-Browser
After=syslog.target
After=network.target
[Service]
RestartSec=2s
Type=simple
User={{ asterisk_user }}
Group={{ asterisk_group }}
Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:{{ path_yealink_xml_browser }}/.venv/bin"
WorkingDirectory={{ path_yealink_xml_browser }}
ExecStart={{ path_yealink_xml_browser }}/.venv/bin/python3 {{ path_yealink_xml_browser }}/main.py
Restart=always
[Install]
WantedBy=multi-user.target