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 | |
### BEGIN INIT INFO | |
# Provides: delayed_job | |
# Required-Start: $all | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: | |
### END INIT INFO |
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
yasi8h@yas-mbp:fusionweb$ git st | |
# On branch yasith | |
# Changed but not updated: | |
# (use "git add <file>..." to update what will be committed) | |
# (use "git checkout -- <file>..." to discard changes in working directory) | |
# | |
# modified: config/environment.rb | |
# modified: config/environments/development.rb | |
# modified: config/initializers/devise.rb | |
# |
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
source "/home/foobar/.rvm/scripts/rvm" | |
if [ $1 == 'task1' ]; then | |
/usr/bin/env /home/foobar/.rvm/rubies/ruby-1.9.2-p0/bin/ruby /var/www/rails_app/script/rails runner -e production "Tasker.task1" | |
exit 1; | |
fi | |
if [ $1 == 'task2' ]; then | |
/usr/bin/env /home/foobar/.rvm/rubies/ruby-1.9.2-p0/bin/ruby /var/www/rails_app/script/rails runner -e production "Tasker.task2" | |
exit 1; |
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
# m h dom mon dow command | |
#task1 | |
0,30 05-07 * * * /home/foobar/script task1 | |
0,10,20,30,40,50 08-18 * * * /home/foobar/script task1 | |
0,30 19-21 * * * /home/foobar/script task1 | |
#task2 | |
0,30 19-21 * * * /home/foobar/script task2 | |
#clean up the logs # once a week every saturday, at 00:00 (midnight) |
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/bash | |
# | |
# Derived from - | |
# Joshua Davis | |
# http://shrubbery.mynetgear.net/c/display/W/Java+Daemon+Startup+Script | |
# | |
# This is a modification of the original script (which lets you run a java program as a deamon. | |
# look bellow for more information) that lets you run a groovy script as a deamon. | |
# | |
# ============== OLD SCRIPT TEXT ============== |
NewerOlder