LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-11-2013, 01:19 PM   #1
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
NoMachine NX: Is server running or not?


Is it running or is it not? Only NX knows...

????????

Code:
# ./nxserver --status
NX> 900 Connecting to server ...
NX> 110 NX Server is running.
NX> 999 Bye.
# ./nxserver --stop
NX> 500 Service was already stopped.
NX> 999 Bye.
# ./nxserver --status
NX> 900 Connecting to server ...
NX> 110 NX Server is running.
NX> 999 Bye.
# ./nxserver --start
NX> 122 Service started.
NX> 999 Bye.
# ./nxserver --status
NX> 900 Connecting to server ...
NX> 110 NX Server is running.
NX> 999 Bye.
# ./nxserver --stop
NX> 123 Service stopped.
NX> 153 Stopping NX server monitor.
NX> 153 NX server monitor already stopped.
NX> 999 Bye.
# ./nxserver --status
NX> 900 Connecting to server ...
NX> 110 NX Server is running.
NX> 999 Bye.
#
 
Old 09-12-2013, 07:15 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Status says its running. Why don't you trust it? Within ps output it only show when theres is a connection.
 
Old 09-24-2013, 11:38 PM   #3
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Original Poster
Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Originally Posted by zhjim View Post
Why don't you trust it?
Why SHOULD I trust it? Look at the commandline captures in my initial post. If you don't see the discrepancies in what is output by the program, look again, more closely. One minute it tells you it's running, so you stop it, and it comes back and says it was already stopped (after just having told you it was running!)

Obviously the software is confused about its status. So what you do is just ignore what it thinks, and go forward based one what you believe is true, not what it tells you. It can't keep its story straight.
 
Old 09-25-2013, 02:33 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Did not completely grasp the whole rundown. Sorry for that. And your totaly right nx is not sure about is state. I tried similar like you did on a host with 3.5 installed.
 
Old 11-17-2013, 02:02 PM   #5
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,792

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
Code:
strace -e open nxserver --status
...
NX> 900 Connecting to server ...
--- SIGCHLD (Child exited) @ 0 (0) ---
NX> 110 NX Server is running.
open("/usr/NX/var/run/daemon.pid", O_RDONLY|O_LARGEFILE) = 3
NX> 110 NX Server monitor is running.
NX> 999 Bye.
I guess your /usr/NX/var/run/daemon.pid has a wrong value.
It should have the pid of the running "nxserver --start"

Last edited by MadeInGermany; 11-17-2013 at 02:06 PM.
 
  


Reply



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
Nomachine NX server Auth problems libox Linux - Software 5 10-08-2013 12:47 PM
Slow overnight running on nomachine session speeds up on interacting with the machine wallisgj SUSE / openSUSE 1 12-21-2012 11:54 AM
nomachine server configuration error sciwi Linux - Newbie 1 10-19-2009 08:30 PM
NoMachine NX Server not working Mepis 6.5 hexstar Linux - Software 4 06-29-2007 12:25 PM
Nomachine/freenx server netcrusher88 Debian 1 12-14-2005 02:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:59 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
Open Source Consulting | Domain Registration