我有一個簡單的python腳本(discord bot),它運行良好,當我運行命令python3 discord_bot.py &
或sh start_bot.sh
。 但是我怎樣才能用supervisord運行它?與supervisord運行python腳本
更新: 我已經安裝了supervisord。但是,當我嘗試運行過程中,我有錯誤:
exit status 0; not expected
我supervisord配置:
[program:AFI]
command=/home/maksymov/www/Bots/discord_bots/afi/start_bot.sh
autostart=true
autorestart=true
stderr_logfile=/var/log/afi.err.log
stdout_logfile=/var/log/afi.out.log
user=www-data
我可以使用http://supervisord.org/嗎? – maksymov
我相信你可以 – kharandziuk