--
You received this message because you are subscribed to the Google Groups "Moonshine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/railsmachine-moonshine/-/hBTxddrqK-wJ.
To post to this group, send email to railsmachin...@googlegroups.com.
To unsubscribe from this group, send email to railsmachine-moon...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/railsmachine-moonshine?hl=en.
Hi Tom,It's ruby, so you can always redefine the method :) There is a built in thing though to control what happens after a logrotate, see https://github.com/railsmachine/moonshine/blob/master/lib/moonshine/manifest/rails/rails.rb#L54So, that'd look like, in config/moonshine.yml::rails_logrotate::postrotate: touch /srv/yourapp/current/tmp/restart.txt && god restart yourapp-djThat assumes your app is in /srv/yourapp, that you are using god to manage dj, and there's a task/group called yourapp-dj.
- Josh
On Apr 3, 2012, at 8:35 PM, Tom Rossi wrote:
Does anyone know the best way to configure moonshine to recycle delayed_job after it rotates the rails logs? I don't want to duplicate what is in the rails_logrotate method, but I'm not sure of another way around it?Thanks,Tom--
You received this message because you are subscribed to the Google Groups "Moonshine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/railsmachine-moonshine/-/hBTxddrqK-wJ.
To post to this group, send email to railsmachine-moonshine@googlegroups.com.
To unsubscribe from this group, send email to railsmachine-moonshine+unsub...@googlegroups.com.
Hi Tom,It's ruby, so you can always redefine the method :) There is a built in thing though to control what happens after a logrotate, see https://github.com/railsmachine/moonshine/blob/master/lib/moonshine/manifest/rails/rails.rb#L54So, that'd look like, in config/moonshine.yml::rails_logrotate::postrotate: touch /srv/yourapp/current/tmp/restart.txt && god restart yourapp-djThat assumes your app is in /srv/yourapp, that you are using god to manage dj, and there's a task/group called yourapp-dj.
- Josh
On Apr 3, 2012, at 8:35 PM, Tom Rossi wrote:
Does anyone know the best way to configure moonshine to recycle delayed_job after it rotates the rails logs? I don't want to duplicate what is in the rails_logrotate method, but I'm not sure of another way around it?Thanks,Tom--
You received this message because you are subscribed to the Google Groups "Moonshine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/railsmachine-moonshine/-/hBTxddrqK-wJ.
To post to this group, send email to railsmachine-moonshine@googlegroups.com.
To unsubscribe from this group, send email to railsmachine-moonshine+unsub...@googlegroups.com.
Hi Tom,It's ruby, so you can always redefine the method :) There is a built in thing though to control what happens after a logrotate, see https://github.com/railsmachine/moonshine/blob/master/lib/moonshine/manifest/rails/rails.rb#L54So, that'd look like, in config/moonshine.yml::rails_logrotate::postrotate: touch /srv/yourapp/current/tmp/restart.txt && god restart yourapp-djThat assumes your app is in /srv/yourapp, that you are using god to manage dj, and there's a task/group called yourapp-dj.
- Josh
On Apr 3, 2012, at 8:35 PM, Tom Rossi wrote:
Does anyone know the best way to configure moonshine to recycle delayed_job after it rotates the rails logs? I don't want to duplicate what is in the rails_logrotate method, but I'm not sure of another way around it?Thanks,Tom--
You received this message because you are subscribed to the Google Groups "Moonshine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/railsmachine-moonshine/-/hBTxddrqK-wJ.
To post to this group, send email to railsmachine-moonshine@googlegroups.com.
To unsubscribe from this group, send email to railsmachine-moonshine+unsub...@googlegroups.com.