8.7. Starting and Stopping the FreeNX Serve

You don't see an nx or FreeNX daemon running anywhere, yet it works—how do you stop and start it, and how do you check the status?

With these three commands:

	# /usr/bin/nxserver --start
	# /usr/bin/nxserver --stop
	# /usr/bin/nxserver --status

FreeNX uses services provided by ssh, so you won't see any sort of FreeNX daemon running. However, stopping FreeNX won't affect ssh or other login services at all.

Here is what your command output should look like:

	# nxserver --status
	NX> 100 NXSERVER - Version 1.5.0-50 OS (GPL)
	NX> 110 NX Server is running
	NX> 999 Bye
	# nxserver --stop
	NX> 100 NXSERVER - Version 1.5.0-50 OS (GPL)
	NX> 123 Service stopped
	NX> 999 Bye
	# nxserver --status
	NX> 100 NXSERVER - Version 1.5.0-50 OS (GPL)
	NX> 110 NX Server is stopped
	NX> 999 Bye
	# nxserver --start
	NX> 100 NXSERVER - Version 1.5.0-50 OS (GPL)
	NX> 122 Service started
	NX> 999 Bye

FreeNX is pretty low-maintenance, and usually doesn't need configuration tweaks. The main configuration file is /etc/nxserver/node.conf./usr/bin/nxserver is just a big old shell script, if you have a desire to hack at it.