Last active
August 29, 2015 13:57
-
-
Save chourobin/9355414 to your computer and use it in GitHub Desktop.
Upstart script for nsq applications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "dash_mux_service" | |
start on filesystem or runlevel [2345] | |
stop on runlevel [!2345] | |
limit nofile 50000 50000 | |
respawn | |
respawn limit 10 5 | |
pre-start script | |
test -x /usr/local/bin/dash_mux_service || { stop; exit 0; } | |
end script | |
exec /usr/local/bin/dash_mux_service --lookupd-http-address=127.0.0.1:4161 --http-address=0.0.0.0:8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "nsqadmin" | |
start on filesystem or runlevel [2345] | |
stop on runlevel [!2345] | |
limit nofile 50000 50000 | |
respawn | |
respawn limit 10 5 | |
pre-start script | |
test -x /usr/local/bin/nsqadmin || { stop; exit 0; } | |
end script | |
exec /usr/local/bin/nsqadmin --lookupd-http-address=127.0.0.1:4161 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "nsqd" | |
start on filesystem or runlevel [2345] | |
stop on runlevel [!2345] | |
limit nofile 50000 50000 | |
respawn | |
respawn limit 10 5 | |
pre-start script | |
test -x /usr/local/bin/nsqd || { stop; exit 0; } | |
end script | |
exec /usr/local/bin/nsqd --lookupd-tcp-address=127.0.0.1:4160 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "nsqlookupd" | |
start on filesystem or runlevel [2345] | |
stop on runlevel [!2345] | |
limit nofile 50000 50000 | |
respawn | |
respawn limit 10 5 | |
pre-start script | |
test -x /usr/local/bin/nsqlookupd || { stop; exit 0; } | |
end script | |
exec /usr/local/bin/nsqlookupd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment