Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • if a start.sh keep the pid of a process, how a stop.sh script, later run by the user, will know the pid of the process that start.sh learned? Commented Apr 14, 2023 at 9:13
  • 1
    Your start script writes the PID to a file in a well known location. This is standard stuff. systemd does it really well; have you considered using it to manage your services? Commented Apr 14, 2023 at 9:22
  • systemd could be a good idea, I didn't tough about, yes. Because my script was intended to start an application in development mode, I didn't wanted to go too far, but if solutions that I've first believed to be simple, aren't (each application looks creating many processes (2 or 3)) then systemd can be a good alternative, yes. Commented Apr 14, 2023 at 11:05