After upgrading to Mattermost 5.0.0 on Ubuntu 18.04, my systemd service for mattermost would start, and everything seemed to work correctly, but running
systemctl status mattermost would show that the Active status was stuck at Activating. This stalled my upgrade script by causing problems with systemctl command line operations.
To fix this I updated the ExecStart directive in mattermost’s unit file located at
/lib/systemd/system/mattermost.service to match version 5.0.0’s name change of the binary file:
Previous directive -
New directive -
Then I ran
systemctl daemon-reload and
sudo systemctl restart mattermost, and the service now shows as Activated.
There is still a ‘platform’ file that systemd can use, and running it from the command line does generate a message that it is deprecated, but if systemd uses it to start the service after upgrading to version 5.0.0, Mattermost will not notify systemd that the service has finished starting.
This was a minor annoyance, and hopefully future versions can make this edit automatically