ControlBlockService icon indicating copy to clipboard operation
ControlBlockService copied to clipboard

Install on fresh RetroPi fails to start service

Open EmbeddedMan opened this issue 6 years ago • 5 comments
trafficstars

I started with a fresh RetroPi v4.5 install on SD card. Using Raspberry Pi 3 B+ and ControlBlock v1.6 board. After booting the system for the first time, (and letting the file system expand, turning on SSH, changing the password, etc.) I ran wget -O - https://raw.githubusercontent.com/petrockblog/ControlBlockService/master/install.sh | sudo bash which looked fine until the second to last line of output:

Scanning dependencies of target installservice
[100%] Installing service.
Making sure that i2c-dev is contained in /etc/modules ...
Making sure that uinput is contained in /etc/modules ...
Making sure that the ARM I2C Interface is enabled via /boot/config.txt ...
[100%] Built target installservice
/home/pi/ControlBlockService
[SUCCESS] The ControlBlock driver binary is installed
[ERROR] The ControlBlock service is not running
You can find the configuration file at /etc/controlblockconfig.cfg.

I'm not sure what's wrong here, or how to proceed with debugging it.

If I reboot, the controlblockservice shows as not started (using the 'service' command), and I can't get it to start.

EmbeddedMan avatar Jul 18 '19 02:07 EmbeddedMan

I also tried the same thing with a fresh copy of RetroPi 4.4, with the same result. I should add that before I ran the install script I did update and upgrade apt-get as per the instructions.

EmbeddedMan avatar Jul 18 '19 02:07 EmbeddedMan

I found the problem, at least for me, Service says DAEMON=/usr/local/bin/$NAME but it is installed on DAEMON=/usr/bin/$NAME

peter-neu avatar May 13 '21 12:05 peter-neu

How did you change things to make it work using the changed path for DAEMON?

EmbeddedMan avatar May 13 '21 13:05 EmbeddedMan

i changed it in the service definition file with sudo nano /etc/init.d/controlblockservice

peter-neu avatar May 13 '21 18:05 peter-neu

Excellent. Thanks for the tip!

EmbeddedMan avatar May 13 '21 18:05 EmbeddedMan