Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 108664 Details for
Bug 153866
ebuild for NoMachine NX Server Free Edition
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
nxnode-2.1.0-init
nxnode-2.1.0-init (text/plain), 1.35 KB, created by
Bernard Cafarelli
on 2007-01-30 19:32:44 UTC
(
hide
)
Description:
nxnode-2.1.0-init
Filename:
MIME Type:
Creator:
Bernard Cafarelli
Created:
2007-01-30 19:32:44 UTC
Size:
1.35 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > ># opts="${opts} reload configtest" > >NX_NODE_CFG="/usr/NX/etc/node.cfg" >NX_SENSOR_CMD="/usr/NX/bin/nxsensor" >NX_SENSOR_PID="/usr/NX/var/run/nxsensor.pid" >NX_SENSOR_HOST="127.0.0.1" >NX_SENSOR_PORT="19250" > >depend() >{ > need net >} > >is_enabled() >{ > local tmp > > if ! [[ -x $NX_SENSOR_CMD ]] ; then > eerror "$NX_SENSOR_CMD not found" > return 1 > fi > > tmp=`/usr/bin/awk -F'"' '/^ENABLE_SENSOR/ {print $2}' $NX_NODE_CFG` > if [[ $tmp != "1" ]]; then > eerror "nxsensor is disabled in $NX_NODE_CFG" > return 1 > fi > > tmp=`/usr/bin/awk -F'"' '/^NODE_SENSOR_HOST/ {print $2}' $NX_NODE_CFG` > if [[ -n $tmp ]] ; then > NX_SENSOR_HOST="$tmp" > fi > > tmp=`/usr/bin/awk -F'"' '/^NODE_SENSOR_PORT/ {print $2}' $NX_NODE_CFG` > if [[ -n $tmp ]] ; then > NX_SENSOR_PORT="$tmp" > fi > > return 0 >} > >start() { > is_enabled || return 1 > ebegin "Starting nxsensor" > $NX_SENSOR_CMD -a $NX_SENSOR_HOST -a "::ffff:$NX_SENSOR_HOST" -P $NX_SENSOR_PORT -d > PID=`ps -ef | grep $NX_SENSOR_CMD | grep -v grep | awk '{print $2}'` > if [[ -z $PID ]] ; then > eend 1 > else > echo $PID > $NX_SENSOR_PID > eend 0 > fi >} > >stop() { > ebegin "Stopping nxsensor" > PID=`cat $NX_SENSOR_PID` > if [[ -z $PID ]] ; then > eerror "nxsensor not started" > eend 1 > else > kill $PID > rm -f $NX_SENSOR_PID > eend 0 > fi >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 153866
:
104348
|
106564
|
108659
|
108660
|
108662
| 108664 |
108665
|
108666
|
108668
|
108669
|
108927
|
108937