[FreeNX-kNX] Re: Ubuntu PPA package broken?

chris at ccburton.com chris at ccburton.com
Mon Apr 4 09:50:10 UTC 2011


Yang Zhang <yanghatespam at gmail.com> wrote on 04/04/2011 04:34:08:

> Hi, the Ubuntu 10.04 package of freenx from the PPA seems to have a
> syntax error on line 13 of the Upstart conf. Is something wrong with
> my installation? Thanks in advance.
> 
> $ lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description:    Ubuntu 10.04.2 LTS
> Release:        10.04
> Codename:       lucid
> 
> $ apt-cache policy freenx
> freenx:
>   Installed: 0.7.3.git100327.e224628-0~ppa7~lucid
>   Candidate: 0.7.3.git100327.e224628-0~ppa7~lucid
>   Version table:
>  *** 0.7.3.git100327.e224628-0~ppa7~lucid 0
>         500 http://ppa.launchpad.net/freenx-team/ppa/ubuntu/ 
> lucid/main Packages
>         100 /var/lib/dpkg/status
> 
> $ sudo service freenx-server status
> start: Unknown job: freenx-server

That doesn't look right to me . . . 
. . .  but then I don't know much about ubuntu

Try 
sudo service freenx-server start

and see if it still gives "unknown job"

or there is

start freenx-server 

> 
> $ sudo initctl reload-configuration
> 
> $ tail -1 /var/log/syslog
> Apr  3 20:26:45 zs init: /etc/init/freenx-server.conf:13: Unknown stanza

Yup

> 
> $ cat /etc/init/freenx-server.conf
> # apport - automatic crash report generation
> #
> # While this job is active, core dumps will captured by apport and
> # used to generate automatic crash reports.
> 
> description     "automatic crash report generation"
> 
> start on runlevel [2345]
> stop on runlevel [!2345]
> 
> env enabled=1
> 
> PATH_BIN=/usr/lib/nx

PATH_BIN is not an upstart stanza. Try putting env (which
is an upstart stanza) in front of it, (see line 11) and see
if any errors go away  . . .

> 
> pre-start script
>     if [ ! -e "/var/run/freenx-server" ]; then
>         [ ! -d "/tmp/.X11-unix" ] && mkdir -m1755 /tmp/.X11-unix/
>         $PATH_BIN/nxserver --cleanup
>         $PATH_BIN/nxserver --start
>         touch "/var/run/freenx-server";
>     else
>         echo "Not starting freenx-server, it's already started."
>     fi
> end script
> 
> post-stop script
>     $PATH_BIN/nxserver --stop
>     $PATH_BIN/nxserver --cleanup
>     rm -f /var/run/freenx-server
> end script
> 
> -- 
> Yang Zhang
> http://yz.mit.edu/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20110404/931ffe7b/attachment.html>


More information about the FreeNX-kNX mailing list