Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you start the worker via startup script? #21

Closed
dajackman opened this issue Dec 22, 2010 · 2 comments
Closed

Can you start the worker via startup script? #21

dajackman opened this issue Dec 22, 2010 · 2 comments

Comments

@dajackman
Copy link

Is there any way the snorby worker can be started via an init/startup script? I haven't been able to get the script to start other than running rails c. I don't want to give other users shell access to the box. Thanks again.

@terracatta
Copy link
Contributor

try this...

cd /var/www/snorby && /usr/local/bin/ruby script/delayed_job start
cd /var/www/snorby && /usr/local/bin/rails runner 'Snorby::Jobs::SensorCacheJob.new(false).perform; Snorby::Jobs::DailyCacheJob.new(false).perform'

@dajackman
Copy link
Author

Exactly what I wanted, thanks!!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants