Can the Windows version of DreamDaemon be started like the Linux version with command-line arguments?
Actually, I know it can take the .dmb as an argument - how about port assignments and security/visibility settings?
ID:136321
![]() Jan 3 2003, 4:02 am
|
|
Thanks! I just wanted to script the DD startups when the server reboots in windows for a while, until I can get time to switch back to Linux.
Thanks again! |
ok... how about shutting down / stopping a DD instance via command line - in either Windoze *or* Linux? Any possibilties?
|
Linux/FreeBSD Only:
kill -15 <dreamdaemon's PID> This asks DreamDaemon to shut down the current world nicely and terminate execution. kill -9 <dreamdaemon's PID> This tells DreamDaemon to stop everything its doing and terminate. ...no nice shutdown of the world. kill -10 <dreamdaemon's PID> This asks DreamDaemon to restart the current world. |
Cool...thanks CM! I was aware of using 'kill', but was curious if the DD had any command-line parameters for the same.
Now I can just grep for the PID, then do the kill from within a cron script. Thanks again! |
...yet another, and hopefully last Windows related question:
Is error logging supported via the command line too, as in the Linux version? |
digitalmouse wrote:
...yet another, and hopefully last Windows related question: I believe that "-log" should work on the windows command-line, but you'll have to test it to find out for sure. If not, you can just set world.log = file("world.log") in the code. I'm almost certain that works. |
Yes, but it's not fully supported or documented. In windows, you'd do something like this:
dreamdaemon.exe "something.dmb" "2000" "-safe"
The quotes are necessary (because windows accepts filenames with spaces) and the first two arguments (dmb, port) must be in that order.