Open XiQshoner opened 6 years ago
It does not work for you probably due to permissions error on the service configuration file, or wrong service configuration - maybe you have relative path in the service configuration?
Hard to say what is the problem without seeing error messages/logs etc.
If you simply want to run a task in the backgound without locking of the console I can recommend two ways:
screen -S thehive
, sudo bin/thehive -Dconfig.file=/etc/thehive/application.conf
, CTRL
+a
-> d
. This will start command inside screen tool and CTRL -AD will detach from that window.nohup sudo bin/thehive -Dconfig.file=/etc/thehive/application.conf
- this will start a process in the background without a screen.
Hello Folks,
I have successfully provisioned my Hive deployment. I do appreciate the hard work that went into this and am happy it is so well documented. Especially for a beginner Linux user as myself. Kudo's to the developers!
When I runt he command to start thehive service and fire up the platform it seems to take over my console session and I am unable to issue any more commands. I know in the installation document it mentions running everything under a new user. I followed those steps and created 'thehive' user.
In step 5 of the install guide it says if you would like to run thehive as a service input the commands necessary. This is fine I did that and when I enter the
sudo service thehive start
i don't get any errors. However when I browse to my socket address nothing is online. It's not until I issue thesudo bin/thehive -Dconfig.file=/etc/thehive/application.conf
that the web interface comes online. Whats the point of running thehive as a service if the service needs an additional command to be run to get everything up? After I run thesudo bin/thehive -Dconfig.file=/etc/thehive/application.conf
the console starts showing me all of the log information for the server. Can I get around this by somehow running this command as the 'thehive' user we setup in step5?Any help would be appreciated, sorry for being such a noob.
Thanks, Eddie