Best way to daemonize Java application on Linux -
while found question being answered here on sw several times, didn't find concluding answer best approach.
i'm not looking use external wrapper, found them launching java process under nice level lower potentially lowers performance, seems shell methods left.
i far found 3 different shell methods:
- start-stop-daemon
- redhat daemon init.d function
- nohup on start / disown after start
what people using, , can recommend reliable method?
thanks.
while standard answer seems jsvc, have been using djb's daemon tools great way make daemon.
i have java, python , few shell scripts running daemons, simple way start/stop them , great logging.
i've used run daemontools root on initctl designed, after few months decided run manually, under normal user, , using svscan-start nicer logging.
Comments
Post a Comment