Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 14th March 2006, 18:14
ColdDoT ColdDoT is offline
Senior Member
 
Join Date: Jan 2006
Location: Netherland
Posts: 178
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ColdDoT
Default Debian continiu running server (When putty shutdown)

Hello i've got a problem

when i start a server prog of my server whith this command

$./ServerProg.sh

then it wil start a server that wil output a lot of text back to the console

but i want tu shutdown putty and i want that the server will continu to run but when i shutdown my putty the server stops

is there any way to change this(whith setting or other progs)

greets kevin
__________________
2B or not 2B (a pro)
Reply With Quote
Sponsored Links
  #2  
Old 14th March 2006, 18:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Try this:

Code:
./ServerProg.sh &> /dev/null &
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 14th March 2006, 19:13
ColdDoT ColdDoT is offline
Senior Member
 
Join Date: Jan 2006
Location: Netherland
Posts: 178
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ColdDoT
Default

Thx thats it thx a lot
but how can i stop that prog then ?

@off-topic
i like to give some color to my init.d startup files like suse
when i start a init.d script in suse you get
Starting mysql done

in debian you get
Starting mysql

is there some code for or a app
__________________
2B or not 2B (a pro)

Last edited by ColdDoT; 14th March 2006 at 20:06.
Reply With Quote
  #4  
Old 15th March 2006, 00:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by ColdDoT
Thx thats it thx a lot
but how can i stop that prog then ?
Run
Code:
ps aux
and search for the process ID. Then run
Code:
kill -9 <process_id>
to kill it.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 15th March 2006, 07:17
ColdDoT ColdDoT is offline
Senior Member
 
Join Date: Jan 2006
Location: Netherland
Posts: 178
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ColdDoT
Default

Ye men you rules
__________________
2B or not 2B (a pro)
Reply With Quote
  #6  
Old 15th March 2006, 08:21
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,060
Thanks: 826
Thanked 5,394 Times in 4,238 Posts
 
Default

Hi Kevin,

here is another useful small program, not for running daemons but for other admin tasks that shall be continued after you closed putty.

If you want to run a script or program, shutdown putty and continue the session later witout stopping the script, you shall have a look at the "screen" program.

Installation on Debian / ubuntu:

Code:
apt-get install screen
To start screen, run the command:

Code:
screen
Now you are in a type of virtual console, start your script now. For example the "top" command:

Code:
top
To close the session, press [ctrl] + a + d

Now you are again on your "normal" putty console. It seems as top is not running.

To connect back to your virtual screen console, run this command:

Code:
screen -r
Now you see that top is still running on your server.

Press "q" to stop the top program and then press [ctrl] + a + d to close the screen. If there is no program running in the screen virtual console, it closes completely and cannot be reopened with screen -r again.

For more screen commands, see:

Code:
man screen
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Fedora 4 TPS mail problem Hagforce HOWTO-Related Questions 13 10th February 2010 18:23
Email - Ueb-Miau mazhar Installation/Configuration 5 21st December 2005 10:01
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 14:42
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30


All times are GMT +2. The time now is 14:18.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.