install :  apt-get install supervisor

 

crete  a  xxxx.conf  file at   /etc/supervisor/conf.d

the content like this:

====

[program:app_name]
command= python odoo.py -c local.conf
directory=/home/jon/workspace/odoo9
user=jon
autorestart=true  

=====

sudo supervisorctl reload                    # to reload the conf info

sudo supervisorctl start app_name      # to start the  [program:app_name]

 

如果OK, 测试 kill 掉odoo进程,发现会立即自动重启

 

相关文章:

  • 2021-12-03
  • 2021-05-16
  • 2021-09-27
  • 2021-06-20
  • 2022-01-02
  • 2021-10-26
  • 2021-11-03
猜你喜欢
  • 2022-02-18
  • 2021-09-07
  • 2022-02-10
  • 2021-08-08
  • 2021-05-24
  • 2022-12-23
相关资源
相似解决方案