ControlBlockService
ControlBlockService copied to clipboard
Install on fresh RetroPi fails to start service
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.
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.
I found the problem, at least for me, Service says DAEMON=/usr/local/bin/$NAME but it is installed on DAEMON=/usr/bin/$NAME
How did you change things to make it work using the changed path for DAEMON?
i changed it in the service definition file with sudo nano /etc/init.d/controlblockservice
Excellent. Thanks for the tip!