<br><tt><font size=2>Yang Zhang <yanghatespam@gmail.com> wrote on
04/04/2011 04:34:08:<br>
<br>
> Hi, the Ubuntu 10.04 package of freenx from the PPA seems to have
a<br>
> syntax error on line 13 of the Upstart conf. Is something wrong with<br>
> my installation? Thanks in advance.<br>
> <br>
> $ lsb_release -a<br>
> No LSB modules are available.<br>
> Distributor ID: Ubuntu<br>
> Description: Ubuntu 10.04.2 LTS<br>
> Release: 10.04<br>
> Codename: lucid<br>
> <br>
> $ apt-cache policy freenx<br>
> freenx:<br>
> Installed: 0.7.3.git100327.e224628-0~ppa7~lucid<br>
> Candidate: 0.7.3.git100327.e224628-0~ppa7~lucid<br>
> Version table:<br>
> *** 0.7.3.git100327.e224628-0~ppa7~lucid 0<br>
> 500 </font></tt><a href="http://ppa.launchpad.net/freenx-team/ppa/ubuntu/"><tt><font size=2>http://ppa.launchpad.net/freenx-team/ppa/ubuntu/</font></tt></a><tt><font size=2>
<br>
> lucid/main Packages<br>
> 100 /var/lib/dpkg/status<br>
> <br>
> $ sudo service freenx-server status<br>
> start: Unknown job: freenx-server<br>
</font></tt>
<br><tt><font size=2>That doesn't look right to me . . . </font></tt>
<br><tt><font size=2>. . . but then I don't know much about ubuntu</font></tt>
<br>
<br><tt><font size=2>Try </font></tt>
<br><tt><font size=2>sudo service freenx-server start</font></tt>
<br>
<br><tt><font size=2>and see if it still gives "unknown job"</font></tt>
<br>
<br><tt><font size=2>or there is</font></tt>
<br>
<br><tt><font size=2>start freenx-server </font></tt>
<br>
<br><tt><font size=2>> <br>
> $ sudo initctl reload-configuration<br>
> <br>
> $ tail -1 /var/log/syslog<br>
> Apr 3 20:26:45 zs init: /etc/init/freenx-server.conf:13: Unknown
stanza<br>
</font></tt>
<br><tt><font size=2>Yup</font></tt>
<br>
<br><tt><font size=2>> <br>
> $ cat /etc/init/freenx-server.conf<br>
> # apport - automatic crash report generation<br>
> #<br>
> # While this job is active, core dumps will captured by apport and<br>
> # used to generate automatic crash reports.<br>
> <br>
> description "automatic crash report generation"<br>
> <br>
> start on runlevel [2345]<br>
> stop on runlevel [!2345]<br>
> <br>
> env enabled=1<br>
> <br>
> PATH_BIN=/usr/lib/nx<br>
</font></tt>
<br><tt><font size=2>PATH_BIN is not an upstart stanza. Try putting env
(which</font></tt>
<br><tt><font size=2>is an upstart stanza) in front of it, (see line 11)
and see</font></tt>
<br><tt><font size=2>if any errors go away . . .</font></tt>
<br>
<br><tt><font size=2>> <br>
> pre-start script<br>
> if [ ! -e "/var/run/freenx-server" ]; then<br>
> [ ! -d "/tmp/.X11-unix" ] &&
mkdir -m1755 /tmp/.X11-unix/<br>
> $PATH_BIN/nxserver --cleanup<br>
> $PATH_BIN/nxserver --start<br>
> touch "/var/run/freenx-server";<br>
> else<br>
> echo "Not starting freenx-server,
it's already started."<br>
> fi<br>
> end script<br>
> <br>
> post-stop script<br>
> $PATH_BIN/nxserver --stop<br>
> $PATH_BIN/nxserver --cleanup<br>
> rm -f /var/run/freenx-server<br>
> end script<br>
> <br>
> -- <br>
> Yang Zhang<br>
> </font></tt><a href=http://yz.mit.edu/><tt><font size=2>http://yz.mit.edu/</font></tt></a>