>> Here is part of config file if you want to edit main.cf manually. Take note of default value that AutoFailOver = 1 (true) and Parallel = 0 (false). Hence if service will fail on one nod, it will start on another node.
group proftpd_grp (
SystemList = { system_1 = 0, system_2 = 1 }
AutoStartList = { system_1, system_2 }
OnlineRetryLimit = 3
)
Application proftpd_service (
StartProgram = "/etc/init.d/proftpd start"
PidFiles = { "/var/run/proftpd/proftpd.pid" }
StopProgram = "/etc/init.d/proftpd stop"
)
IP proftpd_ip (
Device = eth0
Address = "192.168.10.99"
NetMask = "255.255.255.0"
)
requires group some_other_group online local firm
proftpd_service requires proftpd_ip
>>> Here are CLI dor same.
haconf -makerw
hagrp -add proftpd_grp
hagrp -modify proftpd_grp SystemList system_1 0 system_2 1
hagrp -modify proftpd_grp AutoStartList system_1 system_2
hagrp -modify proftpd_grp OnlineRetryLimit 3
hagrp -modify proftpd_grp SourceFile "./main.cf"
hares -add proftpd_service Application proftpd_grp
hares -modify proftpd_service StartProgram "/etc/init.d/proftpd start"
hares -modify proftpd_service PidFiles "/var/run/proftpd/proftpd.pid"
hares -modify proftpd_service StopProgram "/etc/init.d/proftpd stop"
hares -modify proftpd_service User root
hares -modify proftpd_service UseSUDash 0
hares -modify proftpd_service Enabled 1
hares -add proftpd_ip IP proftpd_grp
hares -modify proftpd_ip Device eth0
hares -modify proftpd_ip Address "192.168.10.99"
hares -modify proftpd_ip NetMask "255.255.255.0"
hares -modify proftpd_ip PrefixLen 1000
hares -modify proftpd_ip Enabled 1
hares -link proftpd_service proftpd_ip
haconf -dump -makero
group proftpd_grp (
SystemList = { system_1 = 0, system_2 = 1 }
AutoStartList = { system_1, system_2 }
OnlineRetryLimit = 3
)
Application proftpd_service (
StartProgram = "/etc/init.d/proftpd start"
PidFiles = { "/var/run/proftpd/proftpd.pid" }
StopProgram = "/etc/init.d/proftpd stop"
)
IP proftpd_ip (
Device = eth0
Address = "192.168.10.99"
NetMask = "255.255.255.0"
)
requires group some_other_group online local firm
proftpd_service requires proftpd_ip
>>> Here are CLI dor same.
haconf -makerw
hagrp -add proftpd_grp
hagrp -modify proftpd_grp SystemList system_1 0 system_2 1
hagrp -modify proftpd_grp AutoStartList system_1 system_2
hagrp -modify proftpd_grp OnlineRetryLimit 3
hagrp -modify proftpd_grp SourceFile "./main.cf"
hares -add proftpd_service Application proftpd_grp
hares -modify proftpd_service StartProgram "/etc/init.d/proftpd start"
hares -modify proftpd_service PidFiles "/var/run/proftpd/proftpd.pid"
hares -modify proftpd_service StopProgram "/etc/init.d/proftpd stop"
hares -modify proftpd_service User root
hares -modify proftpd_service UseSUDash 0
hares -modify proftpd_service Enabled 1
hares -add proftpd_ip IP proftpd_grp
hares -modify proftpd_ip Device eth0
hares -modify proftpd_ip Address "192.168.10.99"
hares -modify proftpd_ip NetMask "255.255.255.0"
hares -modify proftpd_ip PrefixLen 1000
hares -modify proftpd_ip Enabled 1
hares -link proftpd_service proftpd_ip
haconf -dump -makero
No comments:
Post a Comment