Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Example crontab using delay script (See related posts)

# Delay the startup of my daemon processes. The start_after_delay
# script is a Ruby script which will Kernel.sleep the given time
# (plus a random 10% extra) before executing the given command
@reboot /home/mmower/bin/start_after_delay 45m /usr/local/bin/ruby /home/mmower/domains/
/instiki-0.10.2 --port nnnn --storage /home/mmower/domains/
@reboot /home/mmower/bin/start_after_delay 45m /usr/local/sbin/lighttpd -f /home/mmower/lighttpd/lighttpd.c

Comments on this post

zenspider posts on Nov 28, 2005 at 21:49
what is wrong with sleep?

You need to create an account or log in to post comments to this site.

Related Posts