After some attempts I managed to get hadashboard running on my Pi3. Main challenge I am facing now is to have it autorun. I edited the init file dashing as below. I copy it to /etc/init.d and chmod it correctly. Now when I manually run dashing te word “dashing” will be written on my screen over and over and ultimately locks up my pi. What am i doing wrong?
I had dashing automatically started on my RPi3 today, and I have the same value as BarryHampants for DAEMON :
# Must be a valid filename
NAME=dashing
DASHING_DIR=/home/pi/hadashboard
DAEMON=/usr/local/bin/dashing
PIDFILE="$DASHING_DIR/$NAME.pid"
DAEMON_OPTS="start -d -P $PIDFILE"
GEM_HOME=/var/lib/gems/2.1.0
I installed it manually, not with docker
For the GEM_HOME path, I used the command
gem environment
And used the first line given in the GEM PATH section :
But if I know run dashing (in /etc/init.d) I get “Could not locate Gemfile or .bundle/ directory”…
If I simply go to /home/pi/hadashboard and execute “dashing start” from there everything works perfectly.
You have to be in the correct directory when you run dashing start or it will break. That is what the dashing_start.sh script does in the distro - run that instead of “dashing start” in your startup script (after editing it appropriately for your path to dashing) and it should work.
Same problem here from /home/pi/hadashboard/ run perfectly… but i cant make it to start… can somebody point how we can check this values? i.e GEM_HOME, DASHING DIR, PATH, etc ???
Ok, tried to document steps a bit, but it is still not working. See documented steps below.
# Must be a valid filename
NAME=dashing
#DASHING_DIR is where hadashboard is installed. Do note the trailing slash as it is a directory
DASHING_DIR=/home/pi/hadashboard/
#DAEMON can be found by typing "which dashing"
DAEMON=/home/pi/.rvm/gems/ruby-2.3.3/bin/dashing
#Don't change the PIDFILE
PIDFILE="$DASHING_DIR/$NAME.pid"
#Don't change the DAEMON_OPTS
DAEMON_OPTS="start -d -P $PIDFILE"
#GEM_HOME is the first line under "Gem Paths" when you type "gem environment"
GEM_HOME=/home/pi/.rvm/gems/ruby-2.3.3
I decided to change hadashboard_start.sh to below and to add that to the crontab @reboot.
#!/bin/bash