tom-2015 / rpi-ws2812-server

Raspberry Pi WS2812 (web) server tool
172 stars 39 forks source link

make install fails to disable missing service first time #59

Open zacaj opened 3 years ago

zacaj commented 3 years ago

first time install on a fresh rpi, ran all the commands in the readme in order. when I got to sudo make install, it failed with

systemctl stop ws2812svr.service
Failed to stop ws2812svr.service: Unit ws2812svr.service not loaded.
make: *** [makefile:58: install] Error 5

commended out that line in the makefile, everything worked fine, so I assume it's just erroring out when it should be ignoring the error, or something similar

tom-2015 commented 3 years ago

yes it should ignore, I'll try to fix that

KHome commented 3 years ago

Hi, had the same issue, too. Solved by following steps without changing the script:

Result:

systemctl stop ws2812svr.service
cp ws2812svr.service  /etc/systemd/system/ws2812svr.service
cp -n ws2812svr.conf /etc/ws2812svr.conf
cp ws2812svr /usr/local/bin
systemctl daemon-reload
systemctl stop ws2812svr.service
systemctl enable ws2812svr.service
Created symlink /etc/systemd/system/multi-user.target.wants/ws2812svr.service → /etc/systemd/system/ws2812svr.service.
systemctl start ws2812svr.service

@tom-2015 : To reproduce this issue following file has to be removed before: /etc/systemd/system/ws2812svr.service