Fórumok

Auto startup liferay on server reboot

thumbnail
Ming Chien Ng, módosítva 13 év-val korábban

Auto startup liferay on server reboot

New Member Bejegyzések: 10 Csatlakozás dátuma: 2011.01.07. Legújabb bejegyzések
Hi,

i had found this link
http://www.liferay.com/community/forums/-/message_boards/message/147629

but i tried...
is not working for me
as the command
sudo update-rc.d liferay defaults 99

result in command not found.

am using centos 5.5


any other way to do it ?
thumbnail
Hitoshi Ozawa, módosítva 13 év-val korábban

RE: Auto startup liferay on server reboot

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
result in command not found.


Try setting the path to include Liferay's home directory
OR
try include the full path to the liferay tomcat's bin directory.
thumbnail
Ming Chien Ng, módosítva 13 év-val korábban

RE: Auto startup liferay on server reboot

New Member Bejegyzések: 10 Csatlakozás dátuma: 2011.01.07. Legújabb bejegyzések
can you explain more about what you stated?
i am not quite understand.
as i am not linux dude. emoticon


i created a script as the link said.
i put it in /etc/init.d/

then i try to execute that
update-rc.d command.
and it prompt me command not found.
thumbnail
Hitoshi Ozawa, módosítva 13 év-val korábban

RE: Auto startup liferay on server reboot

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
then i try to execute that
update-rc.d command.
and it prompt me command not found.


There's not update-rc.d command in CentOS.

You'll have to use
chkconfig liferay on

chkconfig --list

OR

service liferay start

service liferay status
thumbnail
Ming Chien Ng, módosítva 13 év-val korábban

RE: Auto startup liferay on server reboot

New Member Bejegyzések: 10 Csatlakozás dátuma: 2011.01.07. Legújabb bejegyzések
seem like chkconfig working with service.

while my script wasn't a service.

how to make it service ?
thumbnail
Ming Chien Ng, módosítva 13 év-val korábban

RE: Auto startup liferay on server reboot

New Member Bejegyzések: 10 Csatlakozás dátuma: 2011.01.07. Legújabb bejegyzések
here is the solution

http://forums.whirlpool.net.au/archive/894955

just add in another 2 line of code
# chkconfig: 2345 90 10
# description: my_service - does this and that

then

chkconfig liferay on


then reboot ....

it working emoticon

thanks guys for helping.....
thumbnail
Hitoshi Ozawa, módosítva 13 év-val korábban

RE: Auto startup liferay on server reboot

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
it working


Great to hear that's it working. Thank you for posting your solution. emoticon