how can I restart redmine?

14

3

Redmine has to be restarted after a plugin installation.

How can I do that on linux? Does it mean to restart my web server (nginx in my case)? Or do I have to do something else?

Radek

Posted 2010-11-19T05:51:20.450

Reputation: 2 914

Answers

13

Restart your webserver. How to do that depends on your webserver you installed Redmine in, and your Linux distribution. For Apache on Debian, I'd do a:

# /etc/init.d/apache restart

Martin Schapendonk

Posted 2010-11-19T05:51:20.450

Reputation: 286

I run redmine on ngix and Ubunbu. Well if restarting webserver is what I need to do that I know how to restart web server already. – Radek – 2010-11-20T11:31:19.540

13

touch /path/to/redmine/tmp/restart.txt

Redmine will restart at the next page request. This is often the only way if you're on an instance where you don't have permission to restart Apache (shared hosting, etc).

peelman

Posted 2010-11-19T05:51:20.450

Reputation: 4 580

1This seems to be the way how Phusion Passenger works: whenever you touch the tmp/restart.txt file, Passenger restarts all the Rails processes. I didn't manage to restart apache this way though, you would need something like sudo apache2ctl restart – rubo77 – 2014-12-11T16:15:55.853

2

You just need to stop WebRick by doing a Ctrl+C, if running Mongrel you sould try

mongrel_rails stop

jgemedina

Posted 2010-11-19T05:51:20.450

Reputation: 171

don't I have to restart it? Just stop is good enough? – Radek – 2010-11-20T11:30:12.363

Stop is not good enough, my bad there... You should a start after the stop command, or a restart. – jgemedina – 2011-04-09T23:17:08.503

2

Ubuntu (10.04) installs redmine (0.9.3) with passenger. It is passenger that really does restart application using (in /usr/share/redmine):

touch tmp/restart.txt

However, there is another point there. In config/environment.rb, the setting

config.action_mailer.perform_deliveries = false

must be changed to:

config.action_mailer.perform_deliveries = true

Reference: http://www.redmine.org/boards/2/topics/4240

I found it was too much hassle to setup Gmail SMTP, so I've rather setup exim4.

tishma

Posted 2010-11-19T05:51:20.450

Reputation: 213