.mudpy.network.host: '::1'
.mudpy.network.port: 6669
-internal:process:
- #daemon: yes
- #pidfile: mudpy.pid
+#.mudpy.process.daemon: true
+#.mudpy.process.pidfile: mudpy.pid
internal:storage:
default_dir: "data"
"""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.")
"""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)
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)