Skip to content

Commit

Permalink
Adding upstart scripts to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Dec 24, 2011
1 parent 7b5a2d5 commit 51efdf1
Show file tree
Hide file tree
Showing 8 changed files with 110 additions and 1 deletion.
2 changes: 1 addition & 1 deletion conf/nh-irc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ port = 6667
channel = nottinghack
mqtt_tx = nh/irc/tx
mqtt_rx = nh/irc/rx
nickserv_password = epX3G5sz3E
nickserv_password =
14 changes: 14 additions & 0 deletions init/GateKeeper.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
description "GateKeeper"
author "Daniel Swann <[email protected]>"
version "0.01"

start on net-device-up

expect fork
respawn

exec /home/instrumentation/bin/GateKeeper -c /home/instrumentation/conf/GateKeeper.conf

pre-stop script
/usr/bin/mosquitto_pub -t nh/GK/rx -m TERMINATE
end script
21 changes: 21 additions & 0 deletions init/nh-g.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
description "USB / MQTT general I/O interface"
author "Daniel Swann <[email protected]>"
version "0.01"

#start on net-device-up

expect fork
respawn

exec /home/instrumentation/bin/nh-gk-if -c /home/instrumentation/conf/nh-gk-if.conf

#script
# /bin/sleep 3
# exec /home/instrumentation/bin/nh-gk-if -c /home/instrumentation/conf/nh-gk-if.conf
#end script

pre-stop script
/usr/bin/mosquitto_pub -t holly/nh1/rx -m TERMINATE
end script

kill timeout 5
16 changes: 16 additions & 0 deletions init/nh-holly.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
description "nh-holly IRC bot"
author "Daniel Swann <[email protected]>"
version "0.1"

start on net-device-up

expect fork
respawn


exec /home/instrumentation/bin/nh-irc -c /home/instrumentation/conf/nh-irc.conf


pre-stop script
/usr/bin/mosquitto_pub -t holly/irc/rx -m TERMINATE
end script
13 changes: 13 additions & 0 deletions init/nh-irc-misc.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
description "nh-holly IRC bot"
author "Daniel Swann <[email protected]>"
version "0.1"

start on net-device-up

expect fork
respawn


exec /home/instrumentation/bin/nh-irc-misc -c /home/instrumentation/conf/nh-irc-misc.conf


13 changes: 13 additions & 0 deletions init/nh-irccat.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
description "nh-holly IRC bot"
author "Daniel Swann <[email protected]>"
version "0.1"

start on net-device-up

expect fork
respawn


exec /home/instrumentation/bin/nh-irccat -c /home/instrumentation/conf/nh-irccat.conf


16 changes: 16 additions & 0 deletions init/nh-matrix.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
description "nh-matirx board interface"
author "Daniel Swann <[email protected]>"
version "0.1"

start on net-device-up

expect fork
respawn


exec /home/instrumentation/bin/nh-matrix -c /home/instrumentation/conf/nh-matrix.conf


pre-stop script
/usr/bin/mosquitto_pub -t nh/mb/rx -m TERMINATE
end script
16 changes: 16 additions & 0 deletions init/nh-temperature.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
description "nh-temperature monitor"
author "Daniel Swann <[email protected]>"
version "0.1"

start on net-device-up

expect fork
respawn


exec /home/instrumentation/bin/nh-temperature -c /home/instrumentation/conf/nh-temperature.conf


pre-stop script
/usr/bin/mosquitto_pub -t nh/temp/rx -m TERMINATE
end script

0 comments on commit 51efdf1

Please sign in to comment.