Blog Archives

start delayed job on reboot [sh script]

Short way: Making script run at boot time at Debian Manual Way: cd /etc/init.d && sudo nano delayed_job_script Paste following code to delayed_job_script: Note: change RAILS_ROOT and ENV variables according to your setup. #!/bin/sh RAILS_ROOT=”/home/deploy/apps/ProjectFolder/current” ENV=”production” case “$1” in start)

Tagged with: , ,
Posted in Ubuntu
StackOverFlow
Categories
Archives