Skip to content

Instantly share code, notes, and snippets.

@phlegx
Created November 6, 2012 16:28
Show Gist options
  • Save phlegx/4025819 to your computer and use it in GitHub Desktop.
Save phlegx/4025819 to your computer and use it in GitHub Desktop.
namespace :daemon do
desc "Start, stop and restart daemon"
task :restart do
STDERR.puts `/bin/hostname`
#`/etc/init.d/daemon start`
end
end
################
after "deploy", "daemon:restart"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment