blob: d9e059556f7eb5b75a1b62cb9f9e413cb72adcf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
[Unit]
Description=A Matrix-Telegram hybrid puppeting/relaybot bridge
[Service]
Environment=FFMPEG_BINARY=/usr/bin/ffmpeg
ExecStartPre=/usr/bin/alembic -c /usr/share/mautrix-telegram/alembic.ini -x config=/etc/mautrix-telegram/config.yaml upgrade head
ExecStart=/usr/bin/python -m mautrix_telegram -b /etc/mautrix-telegram/config.yaml -c /etc/mautrix-telegram/config.yaml -r /etc/mautrix-telegram/registration.yaml
WorkingDirectory=/var/lib/mautrix-telegram/
ConfigurationDirectory=mautrix-telegram
StateDirectory=mautrix-telegram
Restart=on-failure
ReadWritePaths=/etc/mautrix-telegram /var/lib/mautrix-telegram /var/log/matrix-synapse
User=mx-telegram
DynamicUser=true
[Install]
WantedBy=multi-user.target
|