1

template / platform for linux shell scripts to init.d scripts

view story
linux-howto

http://serverfault.com – So I got a number of small cronjobs, that needs to run more frequent then a minute. So what I usually do is - create shell script with a while loop and sleep statements in it. And then I run it in a screen session. The problem of course is that it does not start if the server is restarted, also it is not as flexible as init.d scripts. I checked a number of posts around but there are mainly not so convenient work-around, and I am trying to avoid those. Is there some platform, or a template I can just pop my while loop into and run it as init.d script ? Or maybe some other convenient solution (HowTos)