Skip to content

Commit

Permalink
add event for other services depending on consul
Browse files Browse the repository at this point in the history
  • Loading branch information
Wil committed Oct 31, 2014
1 parent ca34cf9 commit f9a5d6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/default/consul.conf.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
description "Consul Service Discovery Platform"

emits consul-up

start on runlevel [2345]
stop on runlevel [!2345]

Expand All @@ -12,3 +14,5 @@ script
LOGFILE="/var/log/consul.log"
exec $CMD >> "$LOGFILE"
end script

post-start exec initctl emit consul-up

0 comments on commit f9a5d6d

Please sign in to comment.