LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Switching From Daemon to "Regular Mode" (http://www.linuxquestions.org/questions/linux-newbie-8/switching-from-daemon-to-regular-mode-468388/)

surplusxmas 07-27-2006 08:24 PM

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.

crabboy 07-27-2006 10:53 PM

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?

surplusxmas 07-27-2006 11:27 PM

Quote:

Originally Posted by crabboy
What exactly do you do with it when started normally?

Heh...server-wide text-to-speech announcements and stuff. A lot of the other stuff I can do in other ways, like in the client itself. TTS announcements aren't that important, but I was just curious anyway. As for the Counter-Strike server, I'll just set myself up as an admin so I can enter commands in the steam console rather than the server console. I wish I knew how to run the Half Life Dedicated Server as a daemon, though...

By the way, thanks for your prompt response: I really appreciate it. :)

surplusxmas 07-29-2006 12:31 AM

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

crabboy 07-29-2006 10:05 PM

Good idea. Screen is a great old tool that has fallen to the mighty GUI.


All times are GMT -5. The time now is 10:22 AM.