Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

Logfile redirection in Sidekiq 7

$
0
0

Below is my systemd sidekiq.service setup. I am trying to get my logs in my sidekiq.log file.

Current configuration:

  • Sidekiq: 7.1.6
  • Redis: 7.2.2
  • Ubuntu: 18.04
Type=simpleEnvironment="RAILS_ENV=staging"WorkingDirectory=/home/workspace/rails/appExecStart=/home/.rbenv/shims/bundle exec sidekiq -C /home/workspace/rails/app/config/sidekiq.ymlExecReload=/usr/bin/kill -TSTP $MAINPIDUser=userUMask=0002Environment=MALLOC_ARENA_MAX=2RestartSec=1Restart=on-failureStandardOutput=file:/home/workspace/rails/app/log/sidekiq.logStandardError=file:/home/workspace/rails/app/log/sidekiq.logSyslogIdentifier=sidekiq

I can't see the logs reflecting in sidekiq.log. But if I change StandardError and StandardOutput to syslog, I can see the logs reflecting under syslog. I have restarted daemon and sidekiq as well after editing my systemd file.


Viewing all articles
Browse latest Browse all 873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>