I have installed and configured darkice in Raspbian and it works fine if I run it with "sudo darkice". I want to run darkice automatically so I tried to run it via daemontools with the following steps but it is not working. please help.

  1. open a shell to your server, and type the following:

    apt-get install daemontools
    apt-get install daemontools-run
    mkdir /etc/service/darkice
    chmod 2775 /etc/service/darkice
    touch /etc/service/darkice/run
    
  2. vi /etc/service/darkice/run and add these lines:

    #!/bin/sh
    echo Running service
    exec darkice
    
  • Please describe what you mean with "it is not working". Do you get an error message? Or will it simply not start when you reboot the machine? – Martin von Wittich Sep 26 '13 at 20:10
up vote 2 down vote accepted

Try to make the run script executable:

chmod 755 /etc/service/darkice/run

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.