20 ms·
> I've encountered too many crusty old systems where the init scripts used some bizarre old trick from the 70s. Scripts sure - but modern Linux systems use sys
by jen20 7y ago
> I've encountered too many crusty old systems where the init scripts used some bizarre old trick from the 70s.
Scripts sure - but modern Linux systems use systemd units, not shell scripts for this.
- Kalium 7y agoEven here on HN, one need not look far to find someone who resents everything about systemd and insists on using a non-systemd distro. Such people run systems in real life, too.
- falcolas 7y agoShould you run into such a system, you're still just writing code, and interacting with a daemon that takes care of the hardest parts of init scripts for you. There are no pid files. There are no file locks. There is no "daemonization" to worry about. There is no tracking the process to ensure it's still alive. Just think about how you would interact with the docker daemon to start, stop, restart, and probe the status of a container, and write code to do exactly that. Frankly, Docker containers are the simplest thing you could ever have to write an init script for.
- aganame 7y agoDo you have evidence that they run real systems?
- Kalium 7y agoEvidence I'm comfortable citing in public? No. Experience suggesting that at least one such person runs at least one real system? Yes.