Monday 8am And Myapp.service Is In A Restart Loop

Solvedlinuxservicessystemd4 replies · 223 views · started
Accepted solution by Joon Schmidt — ok so systemd doesnt use your shell environment. no PATH from .bashrc, no cd, no aliases. Use absolute paths in ExecStart, set…
  1. ok weird one myapp.service was fine until todays server patching. Now it wont start:

    the status line says status=217/USER. I didnt touch the unit file. did the update change something underneath?

    The update touched a bunch of packages, sooo it could be anything. Ive checked that the binary is still there and still runs by hand as root. Is there a good way to see what changed for myapp.service specifically? pls help 🙏

    4
  2. ahh classic after editing, always sudo systemctl daemon-reload and then sudo systemctl restart worker.service. systemd-analyze verify /etc/systemd/system/worker.service catches syntax mistakes. good luck man!

    1 0 helpful
  3. Accepted solution

    ok so systemd doesnt use your shell environment. no PATH from .bashrc, no cd, no aliases. Use absolute paths in ExecStart, set WorkingDirectory=, and put variables in Environment= or EnvironmentFile=.

    18 6 helpful
  4. exact same thing happened to my work pc last month

    27 0 helpful

Reply to this topic

Sign in or create an account to reply.