Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

java - JSVC initscript doesn't exit -


i'm trying deamonize java app using jsvc. initscript

#!/bin/sh  # config jsvc=/opt/jsvc/jsvc java_home=/usr/lib/jvm/jre-1.6.0-openjdk.x86_64 user=gserv args=none # end config  pidfile=/var/run/silvercar-gameserver.pid logdir=/var/log/silvercar-gameserver  case "$1" in         start)                 export java_home                 cd `dirname $0`                 $jsvc -jvm server -pidfile $pidfile -user $user -outfile $logdir/stdout -errfile $logdir/stderr \                          -cp `cat classpath` tr.silvercar.gameserver.runner.deamongameserver $args                 ;;         stop)                 $jsvc -stop -pidfile $pidfile                 ;; esac  exit 0 

when run ./thisscript.sh start root 2 things go wrong, , suspect they're related:

  • the app starts, output shown instead of saved specified outfile
  • the script doesn't exit, blocks until hit ctrl+c.

what doing wrong?

i don't see wrong in launch script; perhaps there issue in service implementation deamongameserver. try replacing class simple daemon skeleton implementation , see happens.

also, note there open defect in jsrv : jsvc not exit when non-daemon threads dead.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -