Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ming Chien Ng
Auto startup liferay on server reboot
April 14, 2011 8:36 PM
Answer

Ming Chien Ng

Rank: New Member

Posts: 10

Join Date: January 6, 2011

Recent Posts

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 ?
Hitoshi Ozawa
RE: Auto startup liferay on server reboot
April 14, 2011 8:56 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

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.
Ming Chien Ng
RE: Auto startup liferay on server reboot
April 14, 2011 9:10 PM
Answer

Ming Chien Ng

Rank: New Member

Posts: 10

Join Date: January 6, 2011

Recent Posts

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.
Hitoshi Ozawa
RE: Auto startup liferay on server reboot
April 14, 2011 9:38 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

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
Ming Chien Ng
RE: Auto startup liferay on server reboot
April 14, 2011 10:36 PM
Answer

Ming Chien Ng

Rank: New Member

Posts: 10

Join Date: January 6, 2011

Recent Posts

seem like chkconfig working with service.

while my script wasn't a service.

how to make it service ?
Ming Chien Ng
RE: Auto startup liferay on server reboot
April 14, 2011 11:13 PM
Answer

Ming Chien Ng

Rank: New Member

Posts: 10

Join Date: January 6, 2011

Recent Posts

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.....
Hitoshi Ozawa
RE: Auto startup liferay on server reboot
April 15, 2011 2:12 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

it working


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