Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
nodemon cannot run in background with nohup? #296
Comments
|
Is killed, as in, dies? Or does it linger, then restart? I could do with a bit more information. Perhaps some help debugging? |
remy
added
needs more info
and removed
needs more info
labels
Feb 18, 2014
leoliaolei
commented
Feb 18, 2014
I run nodemon, everything is fine as below.
But nohup not work.
Here is the log of nohup.out
On Wed, Feb 19, 2014 at 4:48 AM, Remy Sharp notifications@github.comwrote:
|
syst3mw0rm
commented
Mar 4, 2014
|
I'm also facing the same issue. I tried to run nodemon in verbose mode but it didn't help much. Here's what happens when I try to run nodemon with nohup : work: [1] + exit 1 nohup nodemon --verbose serve.js work: If appropriate, please file an error: http://github.com/remy/nodemon/issues/new 5 Mar 04:27:30 - [nodemon] exiting |
|
Can someone run the exact same command, but add |
syst3mw0rm
commented
Apr 25, 2014
|
leoliaolei
commented
Apr 25, 2014
-bash-4.1# cat nohup.out
|
sparkit
commented
May 6, 2014
|
I had same issue. Here is my work around
Then execute the script with nohup
|
|
Cheers for the tip. I've not had a chance to play with this yet (am on On Tuesday, May 6, 2014, Sriraman notifications@github.com wrote:
— Remy |
remy
added
help wanted
and removed
needs more info
labels
May 10, 2014
beetaa
commented
Jun 27, 2014
|
@sparkit noop, the ways produce the same error... |
beetaa
commented
Jun 27, 2014
|
this may be help: details: #98 |
nvcken
commented
Jul 8, 2014
|
I have same problem, how can make it work, please help |
sparkit
commented
Jul 8, 2014
|
@nvcken |
nvcken
commented
Jul 8, 2014
|
I has try nohup nodemon </dev/null & 8 Jul 15:00:57 - �[33m[nodemon] v1.2.0�[39m |
nvcken
commented
Jul 8, 2014
|
@sparkit 8 Jul 15:06:49 - �[33m[nodemon] v1.2.0�[39m If appropriate, please file an error with the output from: At http://github.com/remy/nodemon/issues/new |
nvcken
commented
Jul 8, 2014
|
@sparkit |
sparkit
commented
Jul 8, 2014
|
Have added permission +x for exec.sh ? |
nvcken
commented
Jul 8, 2014
|
I has added +x permission for exec.sh. |
sparkit
commented
Jul 8, 2014
|
Will look something like On Tue, Jul 8, 2014 at 1:48 PM, nvcken notifications@github.com wrote:
|
nvcken
commented
Jul 8, 2014
|
I get nohup nodemon work, now. 8 Jul 15:39:02 - �[32m[nodemon] restarting due to changes...�[39m I lookup grep node, has a node process with listening port 35729 running. |
sparkit
commented
Jul 8, 2014
|
Could you please paste here a) nohup command you are running Thanks On Tue, Jul 8, 2014 at 2:15 PM, nvcken notifications@github.com wrote:
|
nvcken
commented
Jul 8, 2014
|
I use only command below Thanks |
cookiengineer
commented
Sep 19, 2014
|
I added an issue to nodejs, because I was having the same issue when binding to stdin. It might be related this issue, too. @remy I bet if you remove these lines, it will work without issues using nohup :) https://github.com/remy/nodemon/blob/master/lib/nodemon.js#L106 |
nswish
commented
Jul 8, 2015
|
nohup nodemon app.js </dev/null & |
rodrigogds
commented
Jan 21, 2016
|
nohup nodemon app.js </dev/null & |
MahdiPishguy
commented
Jul 25, 2016
•
|
i can put it to background, but after close ssh connection, nodemon stopped, because after connecet to ssh again i dont have any package on background
|
Fistynuts
commented
Jan 27, 2017
|
Another possible solution:
The -I switch prevents nodemon from attempting to use STDIN, which isn't allowed under nohup as there's no input stream. |
added a commit
to complate/complate-sample-express
that referenced
this issue
Aug 3, 2017
barraponto
commented
Oct 12, 2017
•
|
|
MahdiPishguy
commented
Oct 13, 2017
|
@barraponto please use |
stale
bot
commented
Dec 12, 2017
|
This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up. |
stale
bot
added
the
wontfix
label
Dec 12, 2017
MahdiPishguy
commented
Dec 12, 2017
|
@leoliaolei you can use nodemon with |
stale
bot
removed
the
wontfix
label
Dec 12, 2017
Fistynuts
commented
Dec 12, 2017
|
@remy Feel free to close this issue, the |
|
I've got an faq item to merge, so I'll add this to the FAQ too. |
leoliaolei commentedFeb 14, 2014
I use
nohup nodemon server.js &. It seems nodemon is killed soon.