18 lines
474 B
Django/Jinja
18 lines
474 B
Django/Jinja
[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_utilities }}/.venv/bin"
|
|
WorkingDirectory={{ path_yealink_utilities }}
|
|
ExecStart={{ path_yealink_utilities }}/.venv/bin/python3 {{ path_yealink_utilities }}/run.py
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|