This file contains hidden or 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
[server] | |
SERVER | |
[server:vars] | |
server_name=SERVER | |
[email protected] | |
docker_nginx_ssl=true |
This file contains hidden or 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
# runcommand.py | |
# Handy function that executes an external command in the shell | |
# and returns 3 values: exit code of the command, its standard output | |
# and its error output. | |
# If you run the script directly, an example is provided: | |
# first it will run a successful command and then one with errors | |
# (you may want to modify them if not running a Unix system). | |
import subprocess |
This file contains hidden or 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/sh | |
# Tomcat Control Script | |
# | |
# Usage: | |
# ln -s /path/to/tomcatctl $HOME/apache-tomcat-6.0.37/ | |
# sudo ln -s $HOME/apache-tom-6.0.37/tomcatctl /etc/init.d/tomcatctl | |
# sudo /etc/init.d/tomcatctl status | |
# | |
# In crontab | |
# */1 * * * * $HOME/apache-tomcat-6.0.37/tomcatctl monitor http://localhost:8080/ > /dev/null || $HOME/apache-tomcat-6.0.37/tomcatctl condrestart > /dev/null |