Migrating X.25 over ACC to X.25 over PSI
18
# ADD customer defined run commands.
: # do nothing instruction, because a function must contain some command.
print " ACC:Converting LBACK to RS232"
/opt/acc/cfg/setRS232.zterm
print " ACC:Starting X.25 Links"
x25util 0 start
test_return 51
}
# You should define all actions you want to happen here, before the #service is halted
function customer_defined_halt_cmds
{
# ADD customer defined halt commands.
: # do nothing instruction, because a function must contain some command.
print "ACC:Converting RS232 to LBACK"
/opt/acc/cfg/setLBACK.zterm
print " ACC:Stoping X.25 Links”
x25util 0 stop
test_return 52
}
Sample control script of X.25 SG package after migration (i.e., in
case of X.25/PSI)
…...
…...
SERVICE NAMES AND COMMANDS:
SERVICE_NAME[0]=X25_SERVICE
SERVICE_CMD[0] ="/usr/sbin/x25ifstate -d /dev/x25_1 -H -t 5"
SERVICE_RESTART[0]=""
……
……
# you should define all actions you want to happen here, before the #service is started.
function customer_defined_run_cmds
{
# ADD customer defined run commands.
: # do nothing instruction, because a function must contain some command.
x25init -c /etc/x25/x25config_1 -a /etc/x25/ip_to_x121_map
sleep 5
test_return 51
}
# You should define all actions you want to happen here, before the #service is halted