Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

supervisord multiple commands in single program

How do I make a program for supervisord execute a command like

make && run-my-app.sh

It seems to try to pass && run-my-app.sh as arguments to make. I've tried different combinations of quotes around things, but I can't seem to get this syntax right.

like image 487
Verhogen Avatar asked Dec 03 '22 18:12

Verhogen


1 Answers

You can enclose it in quotes to make it evaluate as two separate commands instead of making it appear && run-my-app.sh as arguments to make.

command=/bin/bash -c "make && run-my-app.sh"
like image 158
Peter Szeto Avatar answered Dec 21 '22 08:12

Peter Szeto