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't seem to get hive to run on startup #9

Open
cpives2008 opened this issue Oct 2, 2016 · 3 comments
Open

Can't seem to get hive to run on startup #9

cpives2008 opened this issue Oct 2, 2016 · 3 comments

Comments

@cpives2008
Copy link

I'm running hivekit on a Raspberry Pi. It runs fine, and I've created a script to run it rather than have to type in all the details everytime, so all I need to type is ./Hive and it runs perfectly.

However, I can't get it to run on startup. I've tried the init.d method and the rc.local method and neither works.

Help!

@diwilli
Copy link

diwilli commented Oct 16, 2016

Hi @cpives2008,

Incase you haven't already got it sorted I put this in my rc.local:
nohup /root/hivekit/bin/hivekit -username <username> -password <password> -pin <pin> >> /var/log/hivekit/hivekit.log 2>&1 &

Create the logging directory:
mkdir -p /var/log/hivekit

I'd previous created /etc/profile.d/golang.sh with the following content:
export GOPATH=~/gocode
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin

You'll need to adjust your paths if you've put it in a different place

@cpives2008
Copy link
Author

Not working for me

@pete-leese
Copy link

I just edited /etc/rc.local and added the command /bin/hivekit -username -password -pin

I did have to add a sleep 60 seconds command as my Raspberry Pi had not obtained an IP by the time hivekit started - works a treat!

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

No branches or pull requests

3 participants