Skip to content

Service files

Wyatt Jackson edited this page Mar 20, 2021 · 5 revisions

A sample systemd to run matterbridge in the background, restarting if necessary.

/lib/systemd/system/matterbridge.service

[Unit]
Description=Matterbridge Server
After=network.target

[Service]
Type=notify
ExecStart=/opt/mattermost/matterbridge-1.21.0/matterbridge -debug -conf matterbridge.toml
TimeoutStartSec=3600
Restart=always
RestartSec=10
WorkingDirectory=/opt/mattermost/matterbridge-1.21.0
User=mattermost
Group=mattermost
LimitNOFILE=49152

[Install]
WantedBy=multi-user.target

Reload systemd with sudo systemctl daemon-reload

Enable with sudo systemctl enable matterbridge.

Start with sudo systemctl start matterbridge

Created by Minecraftchest1

Clone this wiki locally