What is the difference between systemd's 'oneshot' and 'simple' service types?

前端 未结 2 584
旧巷少年郎
旧巷少年郎 2021-01-30 19:46

What is the difference between systemd service Type oneshot and simple? This link states to use simple instead

2条回答
  •  遇见更好的自我
    2021-01-30 20:40

    From systemd's point of view, Type=simple is kind of fire and forget. Systemd just forks a process defined in ExecStart= and goes on its way, even if the process fails to start.

提交回复
热议问题