Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4355 มุมมอง

Whenever I click the stop button, it says: 

Initiating shutdown
Hit CTRL-C again or send a second signal to force the shutdown.

and I need to press ctrl + c again or click the stop button for the second time. This is the same for stop and rerun button.

How can I fix this so it only takes one click to shut down?

อวตาร
ละทิ้ง

I think what you are looking for is setting your parameters to: -c odoo.conf --dev all.

It does not reduce the number of clicks but it auto-reloads the files, when you make any changes. 

!! You will need to install watchdog in the python running Odoo.  

ผู้เขียน

I'm not sure why my comment disappeared, but I already added the --dev option. The only thing I'm looking for is reducing number of clicks.

It does only take one click to shutdown. It takes a few seconds to shutdown everything in a nice clean way.

If you cannot wait or the shutdown process hangs for some reason, then you can force it with CTRL-C.

Do you have a use case where force quitting is a good standard behavior?

ผู้เขียน

Oh, I just noticed the "all" next to --dev in your comment. It looks like I've been only using --dev xml. Thanks for the replies. It's all clear now!

Related Posts ตอบกลับ มุมมอง กิจกรรม
3
มี.ค. 25
3593
2
มิ.ย. 20
6809
1
พ.ค. 24
15394
3
ม.ค. 18
11119
2
มี.ค. 15
6955