FROM EDUARDO: I just think that too, but the pid will be attached for that script not too mysql So:
[program:pre_mysql] command=/opt/supervisord_mysql.sh process_name=%(program_name)s autostart=true startretries=0 autorestart=false user=root exitcodes=0,2 priority=9 nodaemon=true stopsignal=INT [program:mysql] command=/usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock process_name=%(program_name)s autostart=true autorestart=true startretries=10 user=mysql priority=10 But when the pre script runs, leave in status a FATAL error On Fri, Jan 31, 2014 at 1:41 PM, Marcos Cano <[email protected]> wrote: > how are you running the program? > > my guess is that you have a script and you wish to run a command first and > then execute second command? > > > On Fri, Jan 31, 2014 at 1:14 PM, Eduardo Nunes Pereira < > [email protected]> wrote: > >> I need some way to execute a program once, and not leave letting the >> supervisord points to be a FATAL >> >> -- >> Eduardo Nunes Pereira >> skype: eduardonunesp >> msn:eduardonunesp >> http://about.me/eduardonunesp >> >> >> _______________________________________________ >> Supervisor-users mailing list >> [email protected] >> https://lists.supervisord.org/mailman/listinfo/supervisor-users >> >> >
_______________________________________________ Supervisor-users mailing list [email protected] https://lists.supervisord.org/mailman/listinfo/supervisor-users
