Permalink
Browse files

Option to start/stop/restart a single program

  • Loading branch information...
1 parent e938fa3 commit f3dc6210c473b9fb0135156a7c22e1c966f39d0d @mpasternacki mpasternacki committed May 16, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 modules/supervisord.rb
View
@@ -40,9 +40,11 @@ def supervisorctl(cmd, options={})
def _target(var)
group_name = ENV['GROUP']
group_name ||= fetch var
+ prog_name = ENV['PROGRAM']
+ prog_name ||= 'all'
if ['', nil].include? group_name then
- "all"
+ prog_name
else
"'#{group_name}:*'"
end

0 comments on commit f3dc621

Please sign in to comment.