linux - Updating a java program that runs as a daemon from within the program -


i have java program runs under rhel 6 daemon on system boot. have webpage gui allows user interact daemon administration purposes.

one of administration task user have ability gui update program.

this done using within java program downloading rpm website user enters , installs rpm using rpm -uvh processbuilder call within java program.

the problem part of updating of daemon requires daemon stopped resulting in signal 15 error within daemon since trying update within program shutting down.

i thinking want spawn processbuilder or fork type tool on java, separate process runs update , not encounter signal 15 when stopping daemon during rpm -uvh command.

what best way generate separate process not crash during update process?


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -