Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to restart Redmine?

I have a Redmine installed on CentOS without GUI. I changed email configuration and a reboot is necessary.

How to restart redmine from command line?

like image 214
FilippoG Avatar asked Jul 06 '15 08:07

FilippoG


4 Answers

Restarting Apache (if you use passenger) sometimes does not make desired effect. You can restart Redmine with creating a file:

<redmineHomeDir>/tmp/restart.txt

with content "restart". Anytime you want to restart Redmine, just "touch" this file to change its time-stamp.

touch <redmineHomeDir>/tmp/restart.txt

Redmine will restart at the next page request. This solution can be found on Redmine forums or user blogs (e.g. http://texdex.blogspot.com/2011/03/restarting-redmine-without-restarting.html)

like image 61
mcane Avatar answered Nov 07 '22 10:11

mcane


Depending on how you installed Redmine the restart will look differently. See the scenarios listed below:

Apache/Passenger When installing using Passenger restarting Apache restarts Redmine as well. Example:

root@myserver:~# service httpd restart

Bitnami

root@myserver:~# service bitnami restart

Others

The rule of thumb is to restart the application container. Since redmine runs in a container (ie. Passenger, Bitnami) restarting the container also restarts Redmine.

Note: This issue has been discussed on the Redmine forum. In this thread you can see restart procedures for specific installations. Link: http://www.redmine.org/boards/2/topics/6719?r=6789

like image 20
Mark Avatar answered Nov 07 '22 12:11

Mark


according to https://www.phusionpassenger.com/library/admin/nginx/restart_app.html you can also restart the passenger applications through

passenger-config restart-app
like image 36
Mr.Gosh Avatar answered Nov 07 '22 12:11

Mr.Gosh


I know this is an old question but I wanted to update the answer a bit.

If it's a standalone version just do in <RedmineHomeDir> touch tmp/restart.txt

if it's in docker, a more elegant solution (especially if it's sameersbn/docker-redmine) would be to NOT restart the docker container alltogheter as you'll lose any settings done to the container, and just restart the unicorn running in supervizor!

In order to do this you have to run:

supervizorctl
restart unicorn
exit

This is usually the normal path to not lose aditional configurations done in the Docker Container.

Normally all settings should be done at the creation of a Docker Container, but some settings might be done as a 'hotfix' until a later deploy.

like image 3
Zauxst Avatar answered Nov 07 '22 11:11

Zauxst