If you can start it with sudo -u mattermost /.platform
but not when as a service, then maybe something is wrong with /lib/systemd/system/mattermost.service
.
When you created mattermost.service
file, did you replace these two lines:
After=postgresql.service
Requires=postgresql.service
with
After=mysql.service
Requires=mysql.service