Page 1 of 1

Jail autostart problem with Headphones

Posted: 23 Jun 2014 16:40
by rhettabutler
I have one small problem. In Jail I sue the following command to start after jail is up:

Code: Select all

/usr/sbin/daemon -f -p python /mnt/Extensions/HeadPhones/Headphones.py --quiet
I use this in other jails, with appropriate path and file name, not problems. This one will not start. Any suggestions?

I can see via ssh

Code: Select all

root@HeadPhones:/mnt/Extensions/HeadPhones # python HeadPhones.py

Code: Select all

root@HeadPhones:/mnt/Extensions/HeadPhones # python HeadPhones.py
python: can't open file 'HeadPhones.py': [Errno 2] No such file or directory
root@HeadPhones:/mnt/Extensions/HeadPhones # python Headphones.py
23-Jun-2014 09:46:49 - INFO :: MainThread : Checking to see if the database has all tables....
23-Jun-2014 09:46:49 - INFO :: MainThread : Retrieving latest version information from GitHub
23-Jun-2014 09:46:50 - INFO :: MainThread : Headphones is up to date
23-Jun-2014 09:46:50 - INFO :: MainThread : Starting Headphones on http://0.0.0.0:8181/
and start it there without problem. Just cannot get it to autostart. I have it listed in User command 1 in jail settings.

Thanks for any help trouble shooting.

Re: Jail autostart problem with Headphones

Posted: 25 Jun 2014 04:09
by rhettabutler
I was able to get this working. I updated my Headphones.py file. It was not set to /usr/local/bin/python2.7. Working properly now.

If anyone needs help setting up SABnzbd, Sick Beard, Couch Potato or Head Phones all in jails on embedded install, just let me know will be glad to help and it has been fun figuring out how to make it all work in jails.

Re: Jail autostart problem with Headphones

Posted: 25 Jun 2014 07:35
by raulfg3
rhettabutler wrote:and start it there without problem. Just cannot get it to autostart. I have it listed in User command 1 in jail settings.
try to use command 2 in jail, and use a fake command in command 1 like "pwd".

Some users reported that command 1 is not executed

Re: Jail autostart problem with Headphones

Posted: 23 Jul 2014 22:37
by laster13
viewtopic.php?t=6885

Envoyé de mon Nexus 5 en utilisant Tapatalk