![]() |
Switching From Daemon to "Regular Mode"
Sorry about the title, it was as descriptive as I could get. :p
This question applies particularly to the Ventrilo server, but is a fairly general Linux question. I run the Ventrilo server as a daemon (./ventrilo_srv -d), but when I want to use the server program for some reason, I end up having to kill the process and run it again in "regular mode," (./ventrilo_srv). When I'm done doing what I need to do, I have to quit ventrilo_srv again, and run it once more as a daemon. I was curious if there was any way to switch from daemon to "regular mode" and back again. This also applies to a Counter-Strike server that I run. Please feel free to let me know if you need any more information. Thank you. |
There is no way. All daemon mode does is disassociate itself from the controlling terminal so it does not produce any output or get hangup signals from the terminal. To switch between the modes the processs has to be restarted. Good programs are written in such a way that you can always start the process in daemon mode and interact with it while it's in that mode. What exactly do you do with it when started normally?
|
Quote:
By the way, thanks for your prompt response: I really appreciate it. :) |
I resolved my problem and I thought I'd share it with everybody else. I used "screen." Usage:
screen /full/path/to/ventrilo_srv Then to recall it: screen -r |
Good idea. Screen is a great old tool that has fallen to the mighty GUI.
|
| All times are GMT -5. The time now is 09:11 AM. |