need help with creating a systemd unit file.
I am trying to start some rails workers on startup, the command to do this is :
RAILS_ENV=development bundle exec rails resque:start_workers[2] I put in a unitfile with the following: Code:
[Unit] Can anyone help or spot what I am doing wrong? Note that all the Environment was me trying to replicate the users environment. |
What do you get from:
Code:
systemctl status <your service name> |
Quote:
Code:
Jul 12 09:29:37 wonda bundle[16935]: Starting 2 worker(s) with QUEUE: ingest,mailers,checksum |
Quote:
Code:
D, [2019-07-12T13:39:54.937421 #29170] DEBUG -- : Checking ingest |
Quote:
While the documentation says that multiple instances of "Environment=" should work but it wouldn't be the first time the "fine manual" was in error. Would something like this work? Code:
Environment=RAILS_ENV=development \ |
All times are GMT -5. The time now is 09:33 AM. |