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
#!/bin/bash | |
################################################################################ | |
# | |
# Handle Spring Boot maven modules like daemons | |
# Relies on ApplicationPidFileWriter: | |
# | |
# @SpringBootApplication public class GodApp { | |
# | |
# // [...] | |
# |
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
sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -" | |
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" | |
sudo apt-get update | |
sudo apt-get install lxc-docker-0.6.1 -y | |
vi /etc/init/docker.conf | |
# /usr/bin/docker -d | |
exec start-stop-daemon --start --chuid docker --exec /usr/bin/docker -d | |
usermod -G docker nova |
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
[program:lss] | |
process_name=Shipper | |
command=java -jar /usr/local/logstash/bin/logstash-1.1.9-monolithic.jar agent --config /usr/local/logstash/conf/shipper.conf --log /usr/local/logstash/log/shipper.log | |
user=logstash | |
startretries=3 | |
redirect_stderr=true | |
std_out_logfile=NONE | |
startsecs=3 | |
environment=HOME="/usr/local/logstash/" |