A commented init.d template


I’ve been setting up a lot of random services on personal servers lately and find myself reaching for SysVinit. There are other init systems but I can usually count on init.d to be on a random linux distro (Amazon Linux 1, for example does not have systemd). I also kind of like it! It’s just bash. Getting things right usually involves a few trips to different blogs and stack overflow posts to wire everything together, so I made a template of my own which comments other templates with the things you should need. Feel free to use it or improve upon it here.