LinuxQuestions.org
Visit Jeremy's Blog.
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 10-17-2011, 02:40 AM   #1
Jonajk
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Rep: Reputation: Disabled
Hi I need to know that whether nohup command will run even if the server is bounced


It menas when we shutdown and restart the server.the nohup command wil run or again we have to give the command?Please answer this ASAP.
 
Old 10-17-2011, 03:35 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi and welcome to LQ,

First of all: We are all volunteers here at LQ and "demanding" an answer ASAP is not how we like to see things done around here. Please refrain from doing this in the future.

About your question: You need to restart the job. A restart/reboot will kill all running processes, using nohup and/or putting it in the background (&) will not protect you from this.

Hope this helps.
 
1 members found this post helpful.
Old 10-17-2011, 05:13 AM   #3
Jonajk
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi
Am very sorry.by mistake I typed like that.Very sorry again.
About your answer,it means that if we restart the server ,then again we have to run the nohup command.

But in our application one Poller class is there,it picks the request for every 5 minuts.We are calling that class in one shell program and we run that program by using below command
all files we put in one directory.

nohup sh startce.sh &


This command we run when ever poller not picking up the requests.It is very rare.Though we restart the server also it picks up.

So my question is y some times its not picking up irrelevent to the restarting of server and also in another testing environment this startup directory is placed in another server.Now we want to change that directory and place that directory in application server it self.So for that we just paste the directory in our appserver and run that command is enough or we ahev to do any other changes.Kindly help me.
 
  


Reply


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
How to run nohup with password? your_shadow03 Linux - Newbie 9 04-15-2012 06:45 AM
ssh command, nohup and startx j_kubik Linux - Newbie 7 06-24-2011 03:09 PM
Difficulty in understanding nohup Command. sowraj Linux - Newbie 2 01-28-2010 02:59 AM
problem with nohup command and nohup file size vbseeker Linux - General 1 09-17-2006 12:36 PM
nohup command chbin Slackware 1 03-31-2005 04:47 AM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration