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.