Tag: cron
-
Hint of the day: run-parts and not executing files
If you have a rc.local looking like this: /bin/run-parts /etc/rc.local.d and files in /etc/rc.local.d looking like this hostname.sh sshkeys.sh firstboot.sh it’s not going to work. Why, you ask, after cursing and shouting for the past hour? because run-parts ignores files with dots (“.”) and/or .sh files. Yes. True story. rename all the files to: hostname…
-
Prowl: check server status (using ping)
Yesterday I’ve start using Prowl, as I heard good comments about it. And one of the things I want it to check, are my server statuses. I made a quick script using bash and crontab to check every 10 min if it replies on ping. Per server, I created “host.domain.tld.sh” (e.g. zero.rootspirit.com.sh), and added this…