I created a service directory /etc/runit/sv/ices
and created a run script in that directory. The run script is as follows:
#!/bin/sh
exec ices /etc/ices2/ices-playlist.xml
I also created a symbolic link from the created directory into the services directory. I have tried the following forms:
ln -s /etc/runit/sv/ices /run/runit/service/ices/
ln -s /etc/runit/sv/ices/ /run/runit/service/ices/
ln -s /etc/runit/sv/ices /run/runit/service/
ln -s /etc/runit/sv/ices/ /run/runit/service
If I run the command(s)
ices /etc/ices2/ices-playlist.xml
exec ices /etc/ices2/ices-playlist.xml
directly, the streaming server correctly starts and I can listen to the audio on the other end. If I run sv start ices
, I get the following error:
timeout: down: ices: 1s, normally up, want up
checking sv status ices
yields the same thing. Checking ps for ices pid also shows that there is no ices process running.
If I try:
sv stop ices
runsv /etc/runit/sv/ices
I get the following error:
runsv /etc/runit/sv/ices: fatal: unable to lock supervise/lock: temporary failure
Deleting the lock file at /etc/runit/sv/ices/supervice/lock appears to have no effect.
I have double checked that the run file is executable, and have granted 777 permissions on ALL FILES that are touched in this process. I'm at my wits end.
All I want to do is startup the ices streaming server on boot. please, for the love of god, what I am I doing wrong here?