Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
startup script for aipo.
#!/bin/sh
#
# Aipo Startup script.
#
# chkconfig: - 86 15
# description: aipo start/stop script.
export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
# move to project root directory
NAME=aipo
ENVIROMENT=production
# SCRIPT_DIR=`dirname $0`
ROOT_DIR="/usr/local/aipo"
start()
{
cd $ROOT_DIR
bin/startup.sh
}
stop()
{
cd $ROOT_DIR
bin/shutdown.sh
}
restart()
{
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
*)
echo "Syntax Error: release [start|stop|restart]"
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment