[Unit]
Description=Mattermost
After=syslog.target network.target mysql.service

[Service]
Type=notify
WorkingDirectory=/opt/mattermost
User=mattermost
Group=mattermost
ExecStart=/opt/mattermost/bin/mattermost
PIDFile=/run/mattermost/master.pid
TimeoutStartSec=3600
LimitNOFILE=49152
RuntimeDirectory=mattermost

[Install]
WantedBy=multi-user.target