LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-27-2006, 09:24 PM   #1
surplusxmas
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Rep: Reputation: Disabled
Switching From Daemon to "Regular Mode"


Sorry about the title, it was as descriptive as I could get.

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.

Last edited by surplusxmas; 07-27-2006 at 09:36 PM. Reason: Subscribed
 
Old 07-27-2006, 11:53 PM   #2
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
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?
 
Old 07-28-2006, 12:27 AM   #3
surplusxmas
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-29-2006, 01:31 AM   #4
surplusxmas
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Original Poster
Rep: Reputation: Disabled
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
 
Old 07-29-2006, 11:05 PM   #5
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

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


Reply

Tags
daemon, execute, gameserver, server, shell, ssh, voip


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 05:40 AM
"Out of range" Error for regular users but not root geekychic Linux - Hardware 2 04-01-2005 10:25 AM
Lost DHCP Lease when putting computer in "Standby" mode for a "long" time pnellesen Linux - Networking 1 01-07-2005 12:44 AM
"kdesu" daemon gives error message & all terminal emulators hang hari_seldon99 Mandriva 0 07-28-2004 05:30 AM
"kdesu" daemon gives contradictory error message & all terminal emulators hang hari_seldon99 Linux - General 0 07-24-2004 04:42 PM


All times are GMT -5. The time now is 08:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration