[ubuntu-mono] [Bug 103934] mono-xsp2 init script is not POSIX compliant

Chad Skeeters goobsoft at yahoo.com
Fri Apr 6 23:07:09 UTC 2007


Public bug reported:

Binary package hint: mono-xsp2

The script installed by mono-xsp2 to /etc/init.d/mono-xsp2 runs with the
shell located at /bin/sh.  Since this is now a link to dash and not
bash, the syntax is more strict and stoping the web server produces
"/etc/init.d/mono-xsp2: 95: Syntax error: Bad fd number".  The line that
actually causes the error is line 82 where the output of kill is
redirected to null.

kill $i >& /dev/null

If that line is replaced with the following, bash and dash will complete
without error.

kill $i > /dev/null 2>&1

Another workaround is to change the first line from #! /bin/sh to #!
/bin/bash as it has code that is bash dependent.

http://diveintomark.org/archives/2006/09/19/bad-fd-number
https://wiki.ubuntu.com/DashAsBinSh

** Affects: xsp (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
mono-xsp2 init script is not POSIX compliant
https://bugs.launchpad.net/bugs/103934
You received this bug notification because you are a member of MOTU Mono
Team, which is a bug contact for xsp in ubuntu.




More information about the Ubuntu-mono mailing list