3Com MSR 50 Series Configuration Manual page 779

3com msr 30-16: software guide
Hide thumbs Also See for MSR 50 Series:
Table of Contents

Advertisement

Terminating ttyd
The ttyd program operates in multi-process mode. After you launch the program,
you may find multiple ttyd processes. You can enter this command to view
information about processes:
# ps -ef | grep ttyd
In one-to-one access mode, ttyd processes are in a two-tier process architecture,
where the main process is parent process 1 and the others are child processes.
When you launch a ttyd program, a ttyd main process is started. Whenever a TCP
connection is established between the Unix server and a terminal, a child ttyd
process is started.
# ps -ef | grep ttyd
root
8312 8309
.44 6 /etc/ttyd9010.conf 1026
root
8313 8309
.44 7 /etc/ttyd9010.conf 1028
root
8309 1
The output reveals the relations between the processes:
Process 8309 is the first ttyd process launched, for its parent process is 1.
Processes 8312 and 8313 correspond to asynchronous interfaces with the
terminal numbers of 6 and 7 on router 10.110.96.44 respectively, and their
parent process is process 8309.
All processes use the default configuration file /etc/ttyd.conf.
You can use the kill 8309 command to kill the ttyd process 8309 and all its
child processes, that is, all the processes mentioned above.
You can use the kill 8312 command to kill the ttyd child processes
corresponding to the pseudo terminal ttyp40.
You are recommended to use the kill command, rather than the kill -9 command,
to kill ttyd processes.
c
CAUTION: With automatic link establishment function configured on the router,
after you kill a child process and then use ps-ef, you may still find a process
corresponding to the same pseudo terminal, which is actually a new process.
Enabling ttyd autorun at system startup
1 Open the file /etc/init.d/ttyd.
# vi /etc/init.d/ttyd
2 Add the following to the file:
case "$1" in
'start')
echo "Start ttyd ..."
# To launch multiple configuration files, list each of them in a line.
/etc/ttyd /etc/ttyd.conf
;;
'stop')
Installing and Configuring SCO OpenServer Server
0
17:06:14
? 00:00:00 /etc/ttyd ttyp40 10.110.96
0
17:06:15
? 00:00:00 /etc/ttyd ttyp41 10.110.96
0
17:06:11
? 00:00:00 /etc/ttyd
779

Hide quick links:

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents