def spawnd(path, args, pidfile=None):
 daemonize(no_close=True, pidfile=pidfile)
 _os.execv(path, args)

def spawnd ( path , args , pidfile = None ) : daemonize ( no_close = True , pidfile = pidfile ) _os . execv ( path , args )
run a command as a daemon .