Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Factor out event propagation.
Browse files Browse the repository at this point in the history
  • Loading branch information
spladug committed Jan 11, 2013
1 parent 3c1bea2 commit b2d9296
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 12 additions & 0 deletions upstart/harold-relay.conf
@@ -0,0 +1,12 @@
description "propagate harold-action events to all harold instances"

task
start on harold-action

script
for filename in /opt/harold/etc/*.ini; do
base=$(basename "$filename")
name=${base%.*}
initctl $ACTION --no-wait harold name=$name
done
end script
6 changes: 1 addition & 5 deletions upstart/harold-startup.conf
Expand Up @@ -4,9 +4,5 @@ task
start on runlevel [2345]

script
for filename in /opt/harold/etc/*.ini; do
base=$(basename "$filename")
name=${base%.*}
start --no-wait harold name=$name
done
initctl emit harold-action ACTION=start
end script

0 comments on commit b2d9296

Please sign in to comment.