| 6 | | The next step is to create your configuration file. In the game directory |
|---|
| 7 | | is a file called "mush.cnf". If you don't have mush.cnf, but you have |
|---|
| 8 | | mushcnf.dst, you can copy mushcnf.dst to mush.cnf. This file is a list |
|---|
| 9 | | of all runtime configuration options with their default settting. Change |
|---|
| 10 | | them as you see fit. IMPORTANT: do not _delete_ any parameters. They |
|---|
| 11 | | all need to be there. |
|---|
| | 6 | The next step is to create your configuration file. In the game |
|---|
| | 7 | directory is a file called "mush.cnf". If you don't have mush.cnf, but |
|---|
| | 8 | you have mushcnf.dst, you can copy mushcnf.dst to mush.cnf. This file |
|---|
| | 9 | is a list of all runtime configuration options with their default |
|---|
| | 10 | settting. Change them as you see fit. IMPORTANT: do not _delete_ any |
|---|
| | 11 | parameters. They all need to be there. |
|---|
| 23 | | Berkeley UNIX setup. If you're on a HP-UX or SysV machine, for example, |
|---|
| 24 | | you may need to change the restart script a bit (the ps options, |
|---|
| 25 | | for example). Then run it. |
|---|
| | 23 | Berkeley UNIX setup. If you're on a HP-UX or SysV machine, for |
|---|
| | 24 | example, you may need to change the restart script a bit. Then run |
|---|
| | 25 | it, with 'sh restart' or './restart'. |
|---|
| 45 | | After your first startup, it's a good idea to make some small |
|---|
| 46 | | change to the database (e.g., @create an object) and then |
|---|
| 47 | | do an @shutdown. Restart the game again and ensure that your |
|---|
| 48 | | object is still present - this verifies that the server is |
|---|
| 49 | | successfully dumping. |
|---|
| | 46 | After your first startup, it's a good idea to make some small change |
|---|
| | 47 | to the database (e.g., @create an object) and then do an |
|---|
| | 48 | @shutdown. Restart the game again and ensure that your object is still |
|---|
| | 49 | present - this verifies that the server is successfully dumping. |
|---|
| 77 | | minor weirdness in the database, then try doing a "@dump/paranoid", and |
|---|
| 78 | | reading the checkpoint logfile (default is log/checkpt.log). This is |
|---|
| 79 | | slow, but it will write out an uncorrupted database, and tell you what |
|---|
| 80 | | it fixed. Back up that database and indb.Z, then figure out what you're |
|---|
| 81 | | going to do next: you can take the game down with a kill -9, or attempt |
|---|
| 82 | | to manually fix the problem by either @destroying the offending object, |
|---|
| 83 | | or attempting to reset the attributes on the object that are causing a |
|---|
| 84 | | problem. If "@dump/paranoid" dies, you are more or less out of luck. |
|---|
| | 77 | minor weirdness in the database, then try doing a "@dump/paranoid", |
|---|
| | 78 | and reading the checkpoint logfile (default is log/checkpt.log). This |
|---|
| | 79 | is slow, but it will write out an uncorrupted database, and tell you |
|---|
| | 80 | what it fixed. Back up that database and indb.Z, then figure out what |
|---|
| | 81 | you're going to do next: you can take the game down with a kill -9, or |
|---|
| | 82 | attempt to manually fix the problem by either @destroying the |
|---|
| | 83 | offending object, or attempting to reset the attributes on the object |
|---|
| | 84 | that are causing a problem. If "@dump/paranoid" dies, you are more or |
|---|
| | 85 | less out of luck. |
|---|
| 113 | | Javelin appreciates news of any bugs found, and any patches that have |
|---|
| 114 | | been written to deal with them. He is also interested in any extensions |
|---|
| 115 | | that people make to the code, and requests that ones that are of more |
|---|
| 116 | | than just local interest be sent to him for inclusion in the next |
|---|
| 117 | | release of this code. |
|---|
| | 116 | If you want to start PennMUSH running under a debugger, instead of |
|---|
| | 117 | attaching to an already-running process, it'll need two arguments: |
|---|
| | 118 | --no-session, and the name of your config file if it is different than |
|---|
| | 119 | mush.cnf. Without --no-session, the server will immediately fork off a |
|---|
| | 120 | detatched child process, and the debugger will tell you that the |
|---|
| | 121 | process exited normally.. |
|---|
| 119 | | One important thing to remember is, if the MUSH refuses to start, there |
|---|
| 120 | | is probably a good reason. Check the MUSH log, and the core file, if |
|---|
| 121 | | there is one. Make sure to back up your database before attempting to |
|---|
| 122 | | restart -- remember that every time it restarts, it overwrites |
|---|
| 123 | | indb.Z.old. If you restart three times and somehow manage to trash your |
|---|
| 124 | | database each time (for example, a full process table zero'ing out your |
|---|
| 125 | | files), you won't have a backup to restart from, unless you've backed |
|---|
| 126 | | up your database before trying! |
|---|
| | 123 | The PennMUSH developers appreciate news of any bugs found, and any |
|---|
| | 124 | patches that have been written to deal with them. We are also |
|---|
| | 125 | interested in any extensions that people make to the code, and |
|---|
| | 126 | requests that ones that are of more than just local interest be sent |
|---|
| | 127 | to us for inclusion in the next release of this code. See |
|---|
| | 128 | http://dev.pennmush.org. |
|---|
| | 129 | |
|---|
| | 130 | One important thing to remember is, if the MUSH refuses to start, |
|---|
| | 131 | there is probably a good reason. Check the MUSH log, and the core |
|---|
| | 132 | file, if there is one. Make sure to back up your database before |
|---|
| | 133 | attempting to restart -- remember that every time it restarts, it |
|---|
| | 134 | overwrites indb.Z.old. If you restart three times and somehow manage |
|---|
| | 135 | to trash your database each time (for example, a full process table |
|---|
| | 136 | zero'ing out your files), you won't have a backup to restart from, |
|---|
| | 137 | unless you've backed up your database before trying! |
|---|