I need to start the icecast2 service on startup.
To to make it run on boot, I added to crontab (root) the following line:
@reboot service icecast2 start >/home/pi/logs/icecast2.log 2>&1
after restart, the service doesn't run and I get this error:
/bin/sh: 1: service: not found
So I followed this answer on a similar thread, and added the full path as suggested:
@reboot service /usr/bin/icecast2 start >/home/pi/logs/icecast2.log 2>&1
but now I got this error:
Failed to start usr-bin-icecast2.service.mount: Unit usr-bin-icecast2.service.mount not found.
- When I type
sudo service icecast2 startit works.
- Using Debian Scratch on a Raspberry pi