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 | |
# Nov. 2012 | |
# Octavio Luna & Arturo Lopez | |
### BEGIN INIT INFO | |
## END INIT INFO | |
# Launch play 1.x as a service | |
# Install | |
# sudo update-rc.d play_ubuntu_init.sh defaults 80 | |
# |
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 | |
# chkconfig: 345 84 80 | |
# description: Play start/shutdown script | |
# processname: play | |
# | |
# author: Octavio Luna | |
# email: [email protected] | |
# | |
# Instalation: | |
# copy file to /etc/init.d |
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
#log to console (mainly for debug) | |
log4j.rootLogger=ERROR, Console | |
#Log only to File | |
#log4j.rootLogger=ERROR, Rolling | |
log4j.logger.play=INFO | |
log4j.logger.org.asteriskjava=ERROR | |
#log4j.logger.org.asteriskjava.manager.internal.ManagerReader=DEBUG | |
#log4j.logger.org.asteriskjava.manager.internal.ManagerReaderImpl=DEBUG |
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
function isJQueryVersionAtLeast(mayor, minor, fix){ | |
var minVersion = [mayor,minor, fix]; | |
var currVersion = $.map($.fn.jquery.split('.'), function(item, index){ | |
return parseInt(item); | |
}); | |
return currVersion[0] > minVersion[0] || | |
(currVersion[0] == minVersion[0] && | |
(currVersion[1] > minVersion[1] || |