How to convert a java program to daemon with jsvc?

前端 未结 3 1933
忘了有多久
忘了有多久 2020-11-29 17:42

I wrote a program and now I am expected to convert it to a daemon. Since I am a noob and dont know anything about it, can you please tell me how can I do it or can you pleas

3条回答
  •  一个人的身影
    2020-11-29 18:15

    Are you 100% sure you need to use jsvc? If you just want to have your application bind to a port and run at boot time, you don't need to use it. jsvc allows your application to bind to a privileged port (<1024) and then resume running as a normal user.

提交回复
热议问题