summaryrefslogtreecommitdiff
blob: e133d855c736c8094b182fb93a440a4bf672a1a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

# opts="${opts} reload configtest"

NX_SERVER_CMD="/usr/NX/bin/nxserver"

depend() 
{
	need net
	use nxsensor
}

start() {
	ebegin "Starting nxserver"
	$NX_SERVER_CMD --start
	if [ $? = 0 ]; then
		$NX_SERVER_CMD --statistics start
		eend $?
	else
		eend 1
	fi
}

stop() {
	ebegin "Stopping nxserver"
	$NX_SERVER_CMD --stop
	$NX_SERVER_CMD --statistics stop
	eend 0
}