procsd
procsd copied to clipboard
Add exec in the service template
After running procsd create the services were not starting and I was receiving:
/bin/bash: -c: option requires an argument
It turns out that an argument is missing after the service file is generated. An exec should be added:
ExecStart=/bin/bash -lc 'exec $BINDIR/gunicorn app.wsgi --log-file=- -b 127.0.0.1:$PORT --log-level DEBUG'
It also the same in Foreman. procsd does not add the exec to the script.
I just manually added exec to my processes in the Procfile to get it running