[Mono-aspnet-list] Can't install XSP as daemon on Debian

Alexander M. Batishchev abatishchev at godfather.net.ru
Tue Nov 16 14:44:08 EST 2010

Thanks a lot, Robert!
Works like a charm.

-----Original Message-----
From: mono-aspnet-list-bounces at lists.ximian.com
[mailto:mono-aspnet-list-bounces at lists.ximian.com] On Behalf Of Robert
Sent: Tuesday, November 16, 2010 1:11 PM
To: mono-aspnet-list at lists.ximian.com
Subject: Re: [Mono-aspnet-list] Can't install XSP as daemon on Debian

On 16.11.2010 09:28, Alexander Batishchev wrote:
> Hi, everybody.
> I ran into next problem:
> After building and installing of new version of XSP (from git master, 14
> and 14 sept accordingly) it doesn't run as a daemon and brings the system
> into non-operable condition (it can't boot).
> It looks like this:
> <other daemons start>
> xsp
> Listening on address:
> Root directory: /home/godfather/Projects/Test
> Listening on port: 80 (non-secure)
> And that's all. The system is stucked and only recovery mode helps.
> I'm installing it next way:
> $ sudo cp /etc/init.d/skeleton /etc/init.d/xsp
> PATH=/sbin:/usr/sbin:/bin:/usr/bin
> DESC="Mono XSP4"
> NAME=xsp4
> DAEMON=/usr/bin/$NAME
> DAEMON_ARGS="--port 80 --nonstop --root /home/godfather/Projects/Test"
> PIDFILE=/var/run/$NAME.pid
> SCRIPTNAME=/etc/init.d/$NAME
> $ sudo update-rc.d xsp defaults
> Is it XSP bug?

No. XSP is not a daemon, i.e. it does not detach itself
from the terminal. You are expected to apply the
--background option to the start-stop-daemon calls
in your rc script.

Also, you must explicitly instruct XSP to create a PID
file with its --pidfile option.


Mono-aspnet-list mailing list
Mono-aspnet-list at lists.ximian.com

More information about the Mono-aspnet-list mailing list