Project

General

Profile

How to check if Redmine was restarted

Added by Cyber Owl over 8 years ago

As part of my setup, I have to restart Redmine to make it read-only for part of the day.

When Redmine is restarted, is this event logged in a logfile anywhere?

It is not logged in the $REDMINE_ROOT/redmine/production.log logfile.

Would one of the logs under the /var/log directory?

I'm running Redmine under Ubuntu 14.04


Replies (2)

RE: How to check if Redmine was restarted - Added by Cyber Owl over 8 years ago

I see that there is a log event in the /var/log/apache2/error.log but this only happens if I reload the redmine webpage after I restarted redmine.

Is there a log that logs when a Redmine server was restarted?

RE: How to check if Redmine was restarted - Added by Pavel Potcheptsov over 8 years ago

You might want to check PID of process that handle redmine before and after restart and deal around, i.e. write to log or send email.

# ps ax | grep "unicorn_rails master" | grep -v grep | awk '{ print $1 }'
30239
# /etc/init.d/unicorn restart
/var/www/rm320: Killing old master 30239
# ps ax | grep "unicorn_rails master" | grep -v grep | awk '{ print $1 }'
14701

    (1-2/2)