systemd 学习

目录
警告
本文最后更新于 2023-08-01,文中内容可能已过时。

Linux systemd 学习总结

simple vs oneshot:

When you are deciding which service type to choose between simple and oneshot, here is some guidance:

  • Does your service need to complete before any follow-up services run? Use oneshot.
  • Do your follow-up services need to be running while this service does? Use simple.
  • Is this a long-running service? Probably use simple.
  • Do you need to run this service only at shutdown? Use oneshot.
  • Do you need to have multiple separate commands to run? Use oneshot.

Ref

相关内容

william 支付宝支付宝
william 微信微信
0%