código python para daemon simples
import socket
import time
import signal
s=socket.socket()
s.bind(('127.0.1.1', 20201))
def stop(*a, **k):
global work
work = False
signal.signal(signal.SIGINT, stop)
signal.signal(signal.SIGTERM, s...
31.10.2014 / 14:16