instructure/canvas-lms — Issue #138: Automated Jobs on Snow Leopard Server
Author: DeviousDuck
Created: 2012-02-03 22:47:00+00:00
State: open

Ok brand new to everything here so bare with me.

Spent the last two days getting things up and running on our Snow Leopard Sever and after battling with apache scripts and the like I have a website up that I can see and login to *cheer*. The next problem I'm having is that I have no email's or background processes being run on the server. I know why they aren't running and it's because I've only created the GEM_HOME file and not installed the daemon process manager canvas_init. The installation instructions are only for Debain/Ubuntu which seems to handle daemon differently. From what I understand (which is nothing) I need to be creating a plist file to get this script to run on startup.

Besides that if I just try "/private/var/rails/canvas/script/canvas_init" in the terminal (Is this even kosher?) I get the error :

"readlink: illegal option -- f
usage: readlink [-n] [file ...]
usage: dirname path
/private/var/rails/canvas/script/canvas_init: line 31: /script/delayed_job: No such file or directory"

Now I found a post on the google group from June so I just wanted to check if this was a hint or not:
Christopher Bennell
Jun 23 2011, 10:10 am
Just a note for anyone running the jobs daemon on OS X. The canvas_init
script calls readlink and stat, which are slightly different on OS X. You
will get an error message: "readlink: illegal option -- f"

I installed the coreutils brew package and replaced the calls to readlink
and stat with greadlink and gstat, seems to have fixed the problem.

So I went ahead and installed coreutils and modified caves_init replacing readlink and stat with greadlink and gstat. I then ran:
"sudo /private/var/rails/canvas/script/canvas_init start"

and I get:
"Daemonizing..."

Which I hoped means it's now working? However, if I go to https:///jobs I can see all my DelayedNotification.process showing in the job list but nothing in running jobs.

Not sure if it's any relevance but if I run:
"/private/var/rails/canvas/script/canvas_init status"

I get:
"No delayed jobs pool running"

Can anyone shed some light on what I'm missing?