PDA

View Full Version : Properties not appearing in applogic.sh


GDR!
02-23-2009, 07:21 AM
I have added some component properties, as written in http://forum.3tera.com/showthread.php?p=545

This however does not work, I have tried to find a source and I have found out that the added properties don't appear in /etc/applogic.[sh|csh].

Is there anything special that I need to do to make them appear? Even 'app restart' doesn't help.

GDR!
02-23-2009, 10:51 AM
Okay, saving the app and restarting again helped. But still:
[root@srv1 andrew]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=
NETMASK=
GATEWAY=

If I execute the script from post 545 manually, the file populates with IP and netmask. How do I make it work at startup?

PeterNic
03-02-2009, 12:59 AM
GDR!,

The properties should show in the appliance instance descriptor (in /etc/applogic/appliance.desc and in /etc/applogic.sh|csh). From there, you need to use them -- in particular, to populate the IP, netmask and gateway.

You can simply execute the "ip add" command after "source"-ing /etc/applogic.sh in your bash script (e.g., rc.local).

You can also look at how this is done in the Linux VDS applications that come with the grid -- or start your appliance from one of them.

Does this help?

Best regards,
-- Peter

GDR!
03-02-2009, 05:11 AM
Yes, thank you Peter.