diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-06-23 12:49:07 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-07-10 12:42:29 +0100 |
commit | 58548191fb943ba3da471b3961a46aa6b293d8a5 (patch) | |
tree | bceafdc56eb750f9f5e9bf84d70ed8e63513e04a | |
parent | db2a8e0b20cd8ba3c36cba4ad1a06c70d7046dc3 (diff) |
Update log paths
Use the standard rails locations. Deployment systems should move the log
directory.
-rwxr-xr-x[-rw-r--r--] | config/alert-tracks-debian.ugly | 2 | ||||
-rw-r--r-- | config/crontab-example | 2 | ||||
-rw-r--r-- | config/purge-varnish-debian.ugly | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/config/alert-tracks-debian.ugly b/config/alert-tracks-debian.ugly index 29a350a0e..c7d82d8c8 100644..100755 --- a/config/alert-tracks-debian.ugly +++ b/config/alert-tracks-debian.ugly @@ -16,7 +16,7 @@ NAME=!!(*= $daemon_name *)!! DAEMON=!!(*= $vhost_dir *)!!/alaveteli/script/runner DAEMON_ARGS="--daemon TrackMailer.alert_tracks_loop" PIDFILE=!!(*= $vhost_dir *)!!/alert-tracks.pid -LOGFILE=!!(*= $vhost_dir *)!!/logs/alert-tracks.log +LOGFILE=!!(*= $vhost_dir *)!!/alaveteli/log/alert-tracks.log DUSER=!!(*= $user *)!! # Set RAILS_ENV - not needed if using config/rails_env.rb # RAILS_ENV=your_rails_env diff --git a/config/crontab-example b/config/crontab-example index 669102149..79ba70beb 100644 --- a/config/crontab-example +++ b/config/crontab-example @@ -8,7 +8,7 @@ PATH=/usr/local/bin:/usr/bin:/bin MAILTO=!!(*= $mailto *)!! # Every 5 minutes -*/5 * * * * !!(*= $user *)!! !!(*= $vhost_dir *)!!/!!(*= $vcspath *)!!/commonlib/bin/run-with-lockfile.sh -n !!(*= $vhost_dir *)!!/change-xapian-database.lock "!!(*= $vhost_dir *)!!/!!(*= $vcspath *)!!/script/update-xapian-index verbose=true" >> !!(*= $vhost_dir *)!!/logs/update-xapian-index.log || echo "stalled?" +*/5 * * * * !!(*= $user *)!! !!(*= $vhost_dir *)!!/!!(*= $vcspath *)!!/commonlib/bin/run-with-lockfile.sh -n !!(*= $vhost_dir *)!!/change-xapian-database.lock "!!(*= $vhost_dir *)!!/!!(*= $vcspath *)!!/script/update-xapian-index verbose=true" >> !!(*= $vhost_dir *)!!/!!(*= $vcspath *)!!/log/update-xapian-index.log || echo "stalled?" # Every 10 minutes 5,15,25,35,45,55 * * * * !!(*= $user *)!! /etc/init.d/foi-alert-tracks check 5,15,25,35,45,55 * * * * !!(*= $user *)!! /etc/init.d/foi-purge-varnish check diff --git a/config/purge-varnish-debian.ugly b/config/purge-varnish-debian.ugly index 3f11344f2..ebd4d9e5c 100644 --- a/config/purge-varnish-debian.ugly +++ b/config/purge-varnish-debian.ugly @@ -16,7 +16,7 @@ NAME=!!(*= $daemon_name *)!! DAEMON=!!(*= $vhost_dir *)!!/alaveteli/script/runner DAEMON_ARGS="--daemon PurgeRequest.purge_all_loop" PIDFILE=!!(*= $vhost_dir *)!!/purge-varnish.pid -LOGFILE=!!(*= $vhost_dir *)!!/logs/purge-varnish.log +LOGFILE=!!(*= $vhost_dir *)!!/alaveteli/log/purge-varnish.log DUSER=!!(*= $user *)!! # Set RAILS_ENV - not needed if using config/rails_env.rb # RAILS_ENV=your_rails_env |