systemd

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


What is the difference between systemd service Type oneshot and simple? This link states to use simple instead of oneshot for timers. I am not able to understand it correctly.


Solution

  • The Type=oneshot service unit:

    The Type=simple service unit:

    Both Type=oneshot and Type=simple units: