I have installed Mattermost following this instructions http://docs.mattermost.com/install/prod-rhel-6.html
The thing is, when using the upstart job in those instructions, when Mattermost is started, it’s running with the user ‘root’.
sudo touch /etc/init/mattermost.conf
sudo vi /etc/init/mattermost.conf
Copy the following lines into /etc/init/mattermost.conf
start on runlevel 
stop on runlevel 
You can manage the process by typing:
sudo start mattermost
Is this an expected behaviour?
How do I change the upstart job to run as the user I’ve created for this purpose? I think it’s more secure that way.
Thank you all in advence for your help.