2020-09-06 10:05:42 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Matrix Telegram Bridge
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=mautrix-telegram
|
|
|
|
Group=mautrix-telegram
|
|
|
|
Environment="VIRTUAL_ENV=/opt/mautrix-telegram/venv"
|
|
|
|
Environment="PATH=/opt/mautrix-telegram/venv/bin:/usr/local/bin:/usr/bin:/bin"
|
2020-11-07 08:39:57 +00:00
|
|
|
Environment="FFMPEG_BINARY=/usr/bin/ffmpeg"
|
2020-09-06 10:05:42 +00:00
|
|
|
ExecStart=/opt/mautrix-telegram/venv/bin/python -m mautrix_telegram -c /opt/mautrix-telegram/config.yaml
|
2020-11-07 08:39:57 +00:00
|
|
|
WorkingDirectory=/opt/mautrix-telegram/src
|
2020-09-06 10:05:42 +00:00
|
|
|
Restart=on-failure
|
2020-11-07 08:39:57 +00:00
|
|
|
RestartSec=10
|
2020-09-06 10:05:42 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|