projects
/
mudpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename internal:process to .mudpy.process
[mudpy.git]
/
lib
/
mudpy
/
misc.py
diff --git
a/lib/mudpy/misc.py
b/lib/mudpy/misc.py
index
02f2fba
..
6c720d5
100644
(file)
--- a/
lib/mudpy/misc.py
+++ b/
lib/mudpy/misc.py
@@
-2312,7
+2312,7
@@
def daemonize(universe):
"""Fork and disassociate from everything."""
# only if this is what we're configured to do
"""Fork and disassociate from everything."""
# only if this is what we're configured to do
- if universe.contents["
internal:
process"].get("daemon"):
+ if universe.contents["
mudpy.
process"].get("daemon"):
# log before we start forking around, so the terminal gets the message
log("Disassociating from the controlling terminal.")
# log before we start forking around, so the terminal gets the message
log("Disassociating from the controlling terminal.")
@@
-2349,7
+2349,7
@@
def create_pidfile(universe):
"""Write a file containing the current process ID."""
pid = str(os.getpid())
log("Process ID: " + pid)
"""Write a file containing the current process ID."""
pid = str(os.getpid())
log("Process ID: " + pid)
- file_name = universe.contents["
internal:
process"].get("pidfile")
+ file_name = universe.contents["
mudpy.
process"].get("pidfile")
if file_name:
if not os.path.isabs(file_name):
file_name = os.path.join(universe.startdir, file_name)
if file_name:
if not os.path.isabs(file_name):
file_name = os.path.join(universe.startdir, file_name)
@@
-2361,7
+2361,7
@@
def create_pidfile(universe):
def remove_pidfile(universe):
"""Remove the file containing the current process ID."""
def remove_pidfile(universe):
"""Remove the file containing the current process ID."""
- file_name = universe.contents["
internal:
process"].get("pidfile")
+ file_name = universe.contents["
mudpy.
process"].get("pidfile")
if file_name:
if not os.path.isabs(file_name):
file_name = os.path.join(universe.startdir, file_name)
if file_name:
if not os.path.isabs(file_name):
file_name = os.path.join(universe.startdir, file_name)