I want to run some Java programs in the background when the system boots in Ubuntu. I have tried to add a script in /etc/init.d directory but failed to start a program. i.e programs are not started. What should I do for that?
Join Stack Overflow to learn, share knowledge, and build your career.
closed as off topic by Stephen C, rolve, Bali C, Ed Heal, Jean-François Corbett Dec 7 '12 at 9:14Questions on Stack Overflow are expected to relate to programming within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question. |
|||||||||
|
|||||||||
|
First of all, the easiest way to run things at startup is to add them to the file Another simple way is to use However, if you want to do things properly, in addition to adding a script to
However, real init scripts should be able to handle a variety of command line options and otherwise integrate to the startup process. The file |
|||||||||||||||||||||
|