linamh/net-misc/nxserver/files/nxserver-2.1.0-init
Mario Fetka 4498a08f26 Change ebuild layout
Package-Manager: portage-2.2.20
RepoMan-Options: --force
2016-01-10 21:22:58 +01:00

32 lines
539 B
Plaintext

#!/sbin/runscript
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# opts="${opts} reload configtest"
NX_SERVER_CMD="/usr/NX/bin/nxfaketime '2012-05-19 12:24:45' /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
}