Cleanup systemd section, ref: #1794

Aminda Suomalainen 2022-04-04 10:00:32 +03:00
parent e5cdde75e1
commit 39200ad885

@ -2,33 +2,25 @@
A sample systemd unit to run matterbridge in the background, restarting if necessary. A sample systemd unit to run matterbridge in the background, restarting if necessary.
/lib/systemd/system/matterbridge.service `/etc/systemd/system/matterbridge.service`, remember to correct `ExecStart=` and `User=`
```dosini ```dosini
[Unit] [Unit]
Description=Matterbridge Server Description=Matterbridge daemon
After=network.target After=network-online.target
[Service] [Service]
Type=notify Type=simple
ExecStart=/opt/mattermost/matterbridge-1.24.0/matterbridge -debug -conf matterbridge.toml ExecStart=/path/to/your/matterbridge/binary -conf /path/to/your/matterbridge.toml
TimeoutStartSec=3600
Restart=always Restart=always
RestartSec=10 RestartSec=5s
WorkingDirectory=/opt/mattermost/matterbridge-1.24.0 User=matterbridge
User=mattermost
Group=mattermost
LimitNOFILE=49152
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
``` ```
Reload systemd with `sudo systemctl daemon-reload`
Enable with `sudo systemctl enable matterbridge` Reload systemd with `sudo systemctl daemon-reload`, enable on system start and now with `sudo systemctl enable --now matterbridge.service`
Start with `sudo systemctl start matterbridge`
Created by Minecraftchest1
# OpenRC # OpenRC