java - How to add startup in linux? -


i'm writing java application server-thingy-ma-bob, , want install startup on system load. got done in mac/windows, i'm stuck @ linux. i've seen 2 solutions: editing in etc, , doing stuff crontab. have no idea how linux crontab works, nor have used linux past extent of 30 minutes in vm, in computer emulate it(my current 1 can't). appreciated thanks. , i'm not interested in paying money tanuki service wrapper, , don't want add libraries final release, if don't have to. can provide example of how/what crontab is/works or other way have startup system?

if want start on system start, try putting command start in /etc/rc.local. start root, , should use full path name. should check out daemon tool run things daemons.

if want start when user logs in, try putting command start in ~user/.login


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -