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

Robert Jordan robertj at gmx.net
Tue Nov 16 05:11:03 EST 2010


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 nov
> 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: 0.0.0.0
> 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.

Robert



More information about the Mono-aspnet-list mailing list