Skip to content

Instantly share code, notes, and snippets.

@gerhard
Created May 4, 2012 09:24
Show Gist options
  • Save gerhard/2593557 to your computer and use it in GitHub Desktop.
Save gerhard/2593557 to your computer and use it in GitHub Desktop.
hostnames in this example is a non-daemonizing ruby script
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
@gerhard
Copy link
Author

gerhard commented May 4, 2012

/etc/init/hostnames.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment