Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> However, I would like to know if something _wont_ work. Shell scripts do not have this feature.

... Does systemd?

I still have endless problems with unreliable service startup and I've read all the documentation, have done all the debugging and asked all the people I could find.

> I also spent many years in the land mines of implicit overrides in shell script hells and thank you but no.

I'm not sure what you mean by this.

> Same thing in init scripts. Did you implement reload or restart? Is stop actually doing something or a noop.

So this is linux sysvinit style init scripts, OpenRC doesn't have this issue (as far as I can tell) and definitely I've never had to ask myself any of these questions when using daemontools or runit. Maybe you should familiarize yourself with how some modern non-linux-sysvinit inits work because they're certainly extremely functional, reliable and clear.

> If there is only one thing that I could keep from systemd, it would be the use of unit files instead of shell scripts.

I've actually considered this and I think it would be incredibly trivial to make a unit file parser which you can call from a shebang which would do this kind of thing. You could even have it fork off the parser to run it unprivileged. I think I'll try writing it sometime soon. You could even integrate all the namespacing, cgroups and lots of the other features systemd provides into it.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: