bundlewrap/bundles/mautrix-telegram/files/mautrix-telegram.service
Franzi 638e37c05f
All checks were successful
bundlewrap/pipeline/head This commit looks good
bundles: add Requires=postgresql.service to some services which require postgresql
2021-02-12 13:28:52 +01:00

19 lines
542 B
Desktop File

[Unit]
Description=Matrix Telegram Bridge
After=network.target
Requires=postgresql.service
[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"
Environment="FFMPEG_BINARY=/usr/bin/ffmpeg"
ExecStart=/opt/mautrix-telegram/venv/bin/python -m mautrix_telegram -c /opt/mautrix-telegram/config.yaml
WorkingDirectory=/opt/mautrix-telegram/src
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target