64 bit installation
Hi, i've tried to install entertainer on a 64 bit platform. I have used the entertainer-
"Couldn't connect to the backend server. Execution aborted!
Make sure that Entertainer backend server is up and running."
Here is the entertainer-
#!/usr/bin/env python
__licence__ = "GPLv2"
__copyright__ = "2007, Lauri Taimila"
__author__ = "Lauri Taimila <email address hidden>"
__version__= "0.1"
import ctypes
import gobject
import os
import sys
from backend.
def daemonize(
'''Fork the backend server process'''
try:
pid = os.fork()
if pid > 0:
sys.exit(0) # Exit first parent
except OSError, e:
sys.stderr.
sys.exit(1)
# Decouple from parent environment
os.chdir("/")
os.umask(0)
os.setsid()
# Perform the second fork
try:
pid = os.fork()
if pid > 0:
sys.exit(0) # Exit second parent
except OSError, e:
sys.
# The process is now daemonize, appart from scaring children it'll now run as a daemon
for f in sys.stdout, sys.stderr: f.flush()
si = file(stdin, 'r')
so = file(stdout, 'a+')
se = file(stderr, 'a+')
os.
os.
os.
if __name__ == "__main__":
if len(sys.argv) > 1 and (sys.argv[1] == "--help" or sys.argv[1] == "-h"):
print "Entertainer backend " + str(__version__) + ", Copyright (c) " + str(__copyright__)
print ""
print "Usage:"
print " --help - This help listing"
print " --foreground - Run backend as foreground process"
sys.exit(0)
if len(sys.argv) > 1 and sys.argv[1] == "--foreground":
backend = BackendServer()
else:
print "Entertainer backend starting..."
libc = ctypes.
daemonize()
backend = BackendServer()
Okay thanks in advance all! if you need more info let me know....
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- vinca
- Solved:
- Last query:
- Last reply: