search for: pidfnam

Displaying 1 result from an estimated 1 matches for "pidfnam".

Did you mean: pidfname
2007 Nov 05
7
[PATCH] Recover from corrupt tdb on reboot
...n Solaris, the daemons are SMF managed, and you should not attempt to start xend by hand. """ +import fcntl +import glob import os import os.path import sys @@ -76,6 +78,23 @@ def check_user(): raise CheckError("invalid user") def start_xenstored(): + pidfname = "/var/run/xenstore.pid" + try: + f = open(pidfname, "a") + try: + fcntl.lockf(f, fcntl.LOCK_EX | fcntl.LOCK_NB) + rootdir = os.getenv("XENSTORED_ROOTDIR") or "/var/lib/xenstored" + for i in glob.glob(rootdi...