I will try next monday, so will post a reply with my results :D

Sorry by the "reply error"


On Fri, Jan 31, 2014 at 8:08 PM, Marcos Cano <[email protected]> wrote:

> Did it worked for you?
>
>
> On Friday, January 31, 2014, Marcos Cano <[email protected]> wrote:
>
>> " but the pid will be attached for that script not too mysql"
>>
>> in your script suppose that we want to execute a java app.
>>
>> change:
>>
>>  java yourApp
>>
>> to:
>> exec java yourApp
>>
>> that way the command you run  from your script will "absorb" the PID
>>
>>
>> On Fri, Jan 31, 2014 at 2:29 PM, Marcos Cano <[email protected]> wrote:
>>
>>> 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
>>>>>
>>>>>
>>>>
>>>
>>


-- 
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

Reply via email to