PDA

View Full Version : [SOLVED] Start Liferay at Boot



trippinnik
August 20th, 2010, 04:54 PM
I know Ubuntu has changed the startup system in 10.04 and I am wondering how to go about starting my liferay server at boot (instead of starting manually).

There's already a startup script, can I setup a symlink to somewhere to have it start automatically?

I've tried searching through documentation and google but most of it applies to older versions of Ubuntu. It could be that I'm not using the right vocabulary, but I would appreciate some help here.

ajgreeny
August 20th, 2010, 06:09 PM
What command do you use at the moment to start it, and does it need sudo?

You can probably simply write a shell script with that command in it and add that shell script to your startup applications list if it does not need sudo to start, or perhaps add the command without the sudo to the /etc/rc.local file, just above the "exit 0" line.

It is possible that an init.d script may work as you suggest, but some things no longer work using init.d

trippinnik
August 20th, 2010, 07:05 PM
That worked thanks. [SOLVED]

ajgreeny
August 20th, 2010, 11:26 PM
That worked thanks. [SOLVED]
For future reference, which one of my suggestions was it that worked?