Created
May 4, 2012 09:24
-
-
Save gerhard/2593557 to your computer and use it in GitHub Desktop.
hostnames in this example is a non-daemonizing ruby script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "Hostnames sync" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
console output | |
script | |
while true; do | |
su -c '. /root/.profile && hostnames' | |
sleep 300 | |
done | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/etc/init/hostnames.conf