[Server]Is it possible to detect power button pressed in a program wrote by ourself in Ubuntu 20.04?

前端 未结 0 995
猫巷女王i
猫巷女王i 2021-02-13 21:23

I want to run a program on a server. But I don\'t want it shoutdown immediately after I press power button.

The expected result is server could finish program properly an

相关标签:
回答
  • 消灭零回复
提交回复
热议问题