Hello Marcos, Yes i'm, it runs a task then exits with a code 0. Thank you
Smana ----- Mail original ----- De: "Marcos Cano" <[email protected]> À: "rod" <[email protected]> Cc: [email protected], [email protected] Envoyé: Mercredi 2 Avril 2014 19:35:44 Objet: Re: [Supervisor-users] Run script once Are you sure your command is not daemonizing itself? On Wednesday, April 2, 2014, rod < [email protected] > wrote: The error suggests it exited too quickly, Perhaps setting startsecs to 0 or 1 would help (if your script exits very quickly). Also make sure your process is exiting with a 0 code of course. On 2 April 2014 14:14, < [email protected] > wrote: Hello rod, Thanks for your quick answer. Actually i already tested what you suggested. Here is my configuration : [program:myscript] command=/root/toto.sh autostart=false autorestart=false startretries=0 redirect_stderr=false redirect_stderr=false It works but when it is started, supervisord sees the execution as an error: supervisorctl myscript STOPPED Not started sshd RUNNING pid 9, uptime 0:00:56 supervisor> start myscript runcommonservices: ERROR (abnormal termination) supervisor> status runcommonservices FATAL Exited too quickly (process log may have details) Is it normal ? Maybe it expects only forgeground processes ? Regards, Smana ----- Mail original ----- De: "rod" < [email protected] > À: [email protected] Cc: [email protected] Envoyé: Mercredi 2 Avril 2014 14:56:11 Objet: Re: [Supervisor-users] Run script once I think this was asked recently, and the suggestion was to set autorestart to false. So your script will start with supervisord, can then exit, and will not be restarted. On 2 April 2014 13:53, < [email protected] > wrote: Hello, I can imagine it's not the first time the you see this question : I would like to run a script at supervisord startup which exits immediately and perform a task. Could you please help me to find how could i do this kind of operation ? Thank you, Smana _______________________________________________ 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
