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
Post a Comment