Snorby / snorby

Ruby On Rails Application For Network Security Monitoring
Other
1k stars 224 forks source link

Anyone is running Snorby on Systemd? #474

Closed nan008 closed 6 years ago

nan008 commented 6 years ago

I am trying to run the Snorby as systemd (without passenger/unicorn) but the scripts are not starting correctly

I can do bundle exec rails server -e development -b 0.0.0.0 on the command line while in snorby folder but when I put it in a script and execute with systemctl it is not working correctly.

WorkingDirectory=/tmp/snorby
Environment=RAILS_ENV=development
ExecStart=/usr/local/rbenv/shims/bundle exec rails server -d -b 0.0.0.0

Anyone solved it?

nan008 commented 6 years ago

I managed it to work with systemctl command

sec-u commented 6 years ago

you can define the directory in cli

nan008 commented 6 years ago

It does not help to define the directory in service file - it will fail with bundle exec command on systemd, you need to know what web server is running Snorby, I asked the question as I do not know Ruby and as I said I solved it

whasley commented 5 years ago

nan008, What did you do to solve this problem?