0

Currently trying to get a new systemd script to work. The script has the following included:

ExecStart=/bin/bash -lc 'bundle exec sidekiq -e production'

However that seems not to work.

The error I then get is:

Failed at step CHDIR spawning /bin/bash: No such file or directory

I need to execute the command as a login shell.

Hendrik
  • 251
  • 2
  • 4
  • 11

2 Answers2

1

My problem was that specified WorkingDirectory didn't exist. When I created directory the problem has gone

aiven
  • 111
  • 3
0

Confirm where bash is located on your system using

 which bash

Then update your ExecStart line accordingly.

Mark Stosberg
  • 3,901
  • 24
  • 28