[Mono-aspnet-list] Can't install XSP as daemon on Debian
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>
> 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
> DESC="Mono XSP4"
> DAEMON_ARGS="--port 80 --nonstop --root /home/godfather/Projects/Test"
> $ 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.
More information about the Mono-aspnet-list