I find two configurations for run on systemd
first from http://zwarag.com
[Unit]
Description=mattermost
After=multi-user.target
[Service]
User=mattermost
WorkingDirectory=/var/www
ExecStart=/var/www/bin/platform
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
and second from https://www.howtoforge.com/tutorial/install-mattermost-with-postgresql-and-nginx-on-centos7/
[Unit]
Description=Mattermost
After=syslog.target network.target
[Service]
Type=simple
WorkingDirectory=/opt/mattermost/bin
User=mattermost
ExecStart=/opt/mattermost/bin/platform
PIDFile=/var/spool/mattermost/pid/master.pid
[Install]
WantedBy=multi-user.target
I'm tested only first and its working )