Best Method to run a Java Application as a *nix Daemon or Windows Service?

后端 未结 3 1764
盖世英雄少女心
盖世英雄少女心 2020-12-15 18:40

I am looking for the best method to run a Java Application as a *NIX daemon or a Windows Service. I\'ve looked in to the Java Service Wrapper, the Apache Commons project \'

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-15 19:20

    Are there any special attributes that you need to apply (like OS guided resource management) that you need to support? Otherwise, for Unix you should be able to daemonize your application by writing an appropriate init.d script and setting your app to start automatically.

提交回复
热议问题