diff --git a/Service-file.md b/Service-file.md new file mode 100644 index 0000000..36c0a11 --- /dev/null +++ b/Service-file.md @@ -0,0 +1,22 @@ +A sample systemd to run matterbridge in the background, restarting if necessary. + +``` +[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 +``` +Created by Minecraftchest1 \ No newline at end of file