• 0 Posts
  • 4 Comments
Joined 1 year ago
cake
Cake day: May 31st, 2023

help-circle



  • z2k_@beehaw.orgtoLinux@lemmy.ml*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    To have it automatically restart on failure, you can add the following to your systemd unit:

    [Service]
    Restart=on-failure
    RestartSec=5s
    

    See this blog post for more information.

    But to find the root cause of why it’s failing, you can run systemctl status <service> when it fails to get the most recent logs and hopefully an error as to why it failed.