chestm007 / linux_thermaltake_riing

Python driver and daemon to control thermaltake Riing fans and pumps
GNU General Public License v2.0
59 stars 25 forks source link

Systemd script points to a non correct destination for PopOS 21.04 #52

Open bonkas opened 2 years ago

bonkas commented 2 years ago

I found the service would not start automatically on boot or when manually started, confirmed I can get ir running by running: sudo /usr/bin/python3 /usr/local/bin/linux-thermaltake-rgb

Check the service error with the following sudo service linux-thermaltake-rgb status and getting this error:

linux-thermaltake-rgb.service Loaded: loaded (/lib/systemd/system/linux-thermaltake-rgb.service; enabled; vendor preset: enabled) Active: inactive (dead) (Result: exit-code) since Fri 2021-08-27 19:34:57 NZST; 6s ago Process: 5733 ExecStart=/usr/bin/linux-thermaltake-rgb (code=exited, status=203/EXEC) Main PID: 5733 (code=exited, status=203/EXEC)

I found I had to change the ExecStart path in /usr/lib/systemd/system/linux-thermaltake-rgb.service to the following:

ExecStart=/usr/local/bin/linux-thermaltake-rgb

I am not a linux guru and only just dipping my feet in the water here and came across this solution by piecing together a number of forums posts.

EDIT: I also could not find the service and config files to copy as they did not exist in the location given by the documentation but after a file system search I found them at this location: /usr/local/lib/python3.9/dist-packages/usr/share

ghost commented 1 year ago

same issue on manjarrow though a slightly different location due to a more upto date python version '/usr/lib/python3.10/site-packages/usr/share/linux_thermaltake_rgb/linux-thermaltake-rgb.service'