pascalw / Airplayer

Python script to make media playing software Apple Airplay compatbible. Currently supports XBMC, Plex and Boxee.
http://pwiddershoven.nl/blog/2011/01/05/airplayer.html
BSD 4-Clause "Original" or "Old" License
333 stars 42 forks source link

Ubuntu init script will not start if a different python daemon is already running #2

Closed tomislav closed 13 years ago

tomislav commented 13 years ago

The Ubuntu init script will not start if a different python daemon is already running

root@revo:/usr/local/bin/airplayer# /etc/init.d/airplayer start Starting airplayer: /usr/bin/python already running. airplayer

The solution is to make airplayer.py executable and change COMMAND in the init script to just

COMMAND="$DAEMON"

pascalw commented 13 years ago

Yes that was my initial thought, but I wanted to be able to run airplayer from within virtualenv. But this way that obviously doesn't work, I'll fix it.

pascalw commented 13 years ago

It's fixed. If you want to run airplayer from within a virtualenv you'll just have to wrap it up in a bash script or something. If anyone knows a more decent way to run a python script inside a virtualenv as a daemon please let me know (no changing of the she-bang please).