web-dev-qa-db-ja.com

Mono XSPをデーモンとしてDebianにインストールする方法は?

XSPを仮想Debian5でデーモンとして実行したい。

どうやってやるの?

次に試しました:

$ 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

しかし、システムを再起動すると、次にスタックします。

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

それで全部です。

ユーザーモードで--nonstopなしで実行すると、同じ出力になります。

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

XSPのバグですか?

4
abatishchev

start-stop-daemonには--backgroundを追加する必要があります

1
abatishchev

XSPは本番環境で使用することを想定しておらず、開発サーバーです。

本番環境については、mod_monoをご覧ください: http://www.mono-project.com/Mod_mono

1
Kedare

デーモンとして開始するコマンド:

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

設定が必要な場合があります/ etc/xsp4/debian.webapp

このような:

<apps>
  <web-application>
    <name>test</name>
    <vpath>/test</vpath>
    <path>/var/www/xsp4</path>
  </web-application>
</apps>

この構成ファイルは手動で実行するか、次のコマンドを使用できます:Sudo mono-xsp4-admin --path:/realPath

再起動できます:

Sudo /etc/init.d/mono-xsp4 restart
1
Ariel