2020-09-06 10:05:42 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Matrix Telegram Bridge
|
|
|
|
After=network.target
|
2021-02-12 12:28:52 +00:00
|
|
|
Requires=postgresql.service
|
2020-09-06 10:05:42 +00:00
|
|
|
|
|
|
|
[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
|