Created
August 26, 2014 02:52
-
-
Save developerworks/3ba6ebf20b4fd24ff7f7 to your computer and use it in GitHub Desktop.
Android Push Server Upstart Configuration File
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
author "hezhiqiang" | |
description "Android Push Server" | |
start on runlevel [3] | |
stop on starting rc RUNLEVEL=[016] | |
respawn | |
respawn limit 10 5 | |
expect fork | |
env BASEDIR=/opt/androidpn-server-bin-jetty | |
env CLASSPATH=$BASEDIR/conf | |
env LOG=$BASEDIR/logs/androidpn.log | |
script | |
cd $BASEDIR | |
/opt/jdk1.7.0_65/bin/java -server -classpath $CLASSPATH -Dbase.dir=$BASEDIR -jar $BASEDIR/lib/starter.jar > $LOG 2>&1 | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment