Muhammad Faisal Iqbal
Muhammad Faisal Iqbal

Reputation: 1836

digital ocean manage sidekiq worker

I followed Properly setting up Redis and Sidekiq in production on Ubuntu 16.04 to manage sidekiq worker

I created a file like

touch /lib/systemd/system/sidekiq.service

and added following content

[Unit]
Description=sidekiq
After=syslog.target network.target

[Service]
Type=simple
WorkingDirectory=/home/deploy/ezlarm-server/current

ExecStart=/home/deploy/.rbenv/shims/bundle exec "sidekiq -e production"
User=deploy
Group=deploy
UMask=0002

Environment=MALLOC_ARENA_MAX=2

RestartSec=1
Restart=on-failure

StandardOutput=syslog
StandardError=syslog

SyslogIdentifier=sidekiq

[Install]
WantedBy=multi-user.target

Now when I run

systemctl {start,stop,status,restart} sidekiq

it gives following errors

Errors

Upvotes: 1

Views: 754

Answers (1)

Subin Dev
Subin Dev

Reputation: 21

Maybe its too late but have you tried sudo systemctl {start,stop,status,restart} sidekiq

Faced the same issue but running the command with sudo worked like a charm. Thanks.

Upvotes: 2

Related Questions