def stop(force): daemon = Daemon('PKNS Server', pidfile=os.path.abspath( os.environ['HOME']+"/.pkns/PKNS.pid")) daemon.stop(force=force)