Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Daemonizing & Recalling an App

 
Alex Kirk
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have no idea if what I'm about to ask for is possible, but it's worth a try.
I'd like to be able to issue my command-line Java app a command that sends it into the background -- or makes it a daemon, or whatever -- and gives me back my shell. Then, I'd like to later be able to issue a command from that shell (or any other shell) that brings my app back to control -- i.e. brining me back to its interface. Optimally, I'd like for this to be shell-independent on UNIX systems, so that if I sent the program to the background and then logged out, it would not only not die, but be available for recall from other shells.
On a semi-related note, it'd be really nice if I could get this app to have a name that shows up when you list processes on UNIX (i.e. "ps aux").
Thanks in advance.
Alex Kirk
 
Mark Herschberg
Sheriff
Posts: 6037
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out JSR-96, Java Deamons, at http://www.jcp.org/jsr/detail/96.jsp
--Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic