Skip to content

Instantly share code, notes, and snippets.

@adamhjk
Created August 25, 2008 17:41
Show Gist options
  • Save adamhjk/7122 to your computer and use it in GitHub Desktop.
Save adamhjk/7122 to your computer and use it in GitHub Desktop.
runit_service { "tasktracker":
directory => "/etc/sv",
templatedir => "foo-datanode/tasktracker",
onlyif => "/usr/bin/test ! -f /srv/tasktracker/current/bin/hadoop",
logconfig => true,
require => File["/srv/tasktracker"]
}
# foo-datanode/tasktracker has run.erb, log-run.erb, and log-config.erb (optionally)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment