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-08-13
  • 2021-08-13
  • 2021-11-14
  • 2021-08-13
  • 2020-04-26
  • 2018-11-23
猜你喜欢
  • 2022-02-18
  • 2022-02-10
  • 2021-08-08
  • 2021-09-07
  • 2021-05-24
  • 2022-12-23
相关资源
相似解决方案