Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make install fails to disable missing service first time #59

Open
zacaj opened this issue Feb 4, 2021 · 2 comments
Open

make install fails to disable missing service first time #59

zacaj opened this issue Feb 4, 2021 · 2 comments

Comments

@zacaj
Copy link

zacaj commented Feb 4, 2021

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
Copy link
Owner

tom-2015 commented Feb 4, 2021

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

@KHome
Copy link

KHome commented Feb 19, 2021

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

  • copy ws2812svr.service from git repository to etc/systemd/system/ by
    sudo cp ws2812svr.service /etc/systemd/system/ws2812svr.service
  • execute sudo make install then works fine

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants