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.

  • 1
    Why are you even calling bash at all? Just call the program you want. – Michael Hampton Oct 25 '16 at 15:50
0

Confirm where bash is located on your system using

 which bash

Then update your ExecStart line accordingly.

  • That fixed it thanks. Plus I had my WorkingDirectory setup wrong. – Hendrik Oct 25 '16 at 15:54
  • That's strange, though: On my Ubuntu 16.04, bash is at /bin/bash. – Mark Stosberg Oct 25 '16 at 16:07
0

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

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.