Skip to content

Instantly share code, notes, and snippets.

@gunnertech
gunnertech / centos_shebang.sh
Created August 27, 2011 01:14
CentOS Setup Script for Passenger/MySQL/Nginx/Rails
#!/bin/bash
#SCRIPT VARIABLES
interpreter=$1
user=$2
project=$3
mysql_root_password=$4
mysql_app_password=$5
environment=$6
@gunnertech
gunnertech / nginx
Created August 16, 2011 05:10
CentOS Nginx cntrl
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemin
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /opt/nginx/conf/nginx.conf
# pidfile: /opt/nginx/logs/nginx.pid