Skip to content

Instantly share code, notes, and snippets.

@gerhard
Created May 4, 2012 09:24
Show Gist options
  • Select an option

  • Save gerhard/2593557 to your computer and use it in GitHub Desktop.

Select an option

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

gerhard commented May 4, 2012

Copy link
Copy Markdown
Author

/etc/init/hostnames.conf

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