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

Change running from pi home folder to any specified user home folder #79

Open
peeejayz opened this issue Jun 14, 2016 · 0 comments
Open

Comments

@peeejayz
Copy link

Personally I prefer to run things outside of the Pi home folder and in a specific account for ERLT.

This is more a security and monitoring reason.

Creating a global variable across ERLT for this reason called ERLTHOME

Changing the code to /home/pi/EasyRaceLapTimer to $ERLTHOME should be an easy change in the code to make this run from any home folder.

Then just setting up your /etc/rc.local to point to the account(erlt in this example):

(sleep 1; /home/erlt/EasyRaceLapTimer/ir_daemon/ir_daemon > /var/log/ir_daemon.log 2>&1 &) || /bin/true
(sleep 1; /home/erlt/EasyRaceLapTimer/web/start_sidekiq.sh > /var/log/sidekiq.log 2>&1 &) || /bin/true

Currently getting the code to run from another account/home folder is a nightmare and takes alot of digging about to make it do so.

I'm also looking into making changes to the code within my own fork to make everything run under a user account and not just making it all run as root - this is a big security risk, while its only a laptiming system, to be taken seriously this needs to start happening.

Let me know your thoughts - I'm coming from a Systems Admin Point of view over a coder - these are the sort of things I am trained to pick up on.

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

1 participant