Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want XSP to run on my virtual Debian 5 as a daemon.

How can I do that?

I tried next:

$ sudo cp /etc/init.d/skeleton /etc/init.d/xsp

updated the script properly:

DESC="Mono XSP4"
DAEMON_ARGS="--port 80 --nonstop --root /home/godfather/Projects/Test"


$ sudo update-rc.d xsp defaults

But after system restart it becomes stuck on next:

Listening on address:
Root directory: /home/godfather/Projects/Test
Listening on port: 80 (non-secure)

That's all.

It has the same output if run it in user mode and without --nonstop:

Listening on address:
Root directory: /home/godfather/Projects/Test
Listening on port: 80 (non-secure)
Hit Return to stop the server.

Is it XSP bug?

share|improve this question

XSP isn't supposed to be used in production, it's a development server.

For production, take a look at mod_mono:

share|improve this answer
In fact, in your case Apache will handle user requests and anyway via mod_mono will redirect them to XSP: The module passes off requests for ASP.NET pages to an external program, mod-mono-server, which actually handles the requests – abatishchev Nov 17 '10 at 7:03
up vote 1 down vote accepted

start-stop-daemon should be appended with --background

share|improve this answer

Command to start as deamon:

sudo /etc/init.d/mono-xsp4 start

you might need to configure /etc/xsp4/debian.webapp

like this:


you can this configuration file manualy or use command: sudo mono-xsp4-admin --path:/realPath

you can restart:

sudo /etc/init.d/mono-xsp4 restart
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.