• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Daemon process exits when Xterm is closed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Our project requirement is to create a java application and run it as a service (daemon) in Solaris. We used Java Service Wrapper to make a java app as a daemon process. The wrapper takes care of creating the daemon process (including file permission, executable scripts, etc.).

We are using Reflection (Xterm via Telnet) to connect to the Solaris box and start the service from there. The problem is that when we close the Xterm window, the deamon process gets killed.
We wanted the service to be alive even after closing the Xterm.

Any solutions to this..

Thanks in advance...
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not familiar with this project, but running a background Java process immune to hangup signals on UNIX is quite easy; the "nohup" program will do this for you. It's hard to imagine how this wrapper thingy would improve on just something like

% nohup java MyClass > outputfile 2> errorfile &
 
reply
    Bookmark Topic Watch Topic
  • New Topic