Moxa W321-LX [33/80] Setting the run level

Moxa W341-LX [33/80] Setting the run level
W321/341 Linux Managing Embedded Linux
3-7
116 root 1924 S /bin/snmpd
122 root 4316 S /bin/sshd -6 -f /etc/ssh/sshd_config
132 root 4316 S /bin/sshd -4 -f /etc/ssh/sshd_config
161 root 6928 S sshd: root@pts/0
163 root 2864 S -bash
214 root 0 SW [flush-1:0]
215 root 0 SW [flush-1:1]
221 root 1852 S ./tcps2-release
222 root 3096 R ps
root@Moxa:~#
Setting the Run-Level
In this section, we outline the steps you should take to set the Linux run-level and execute requests. Use
the following command to enable or disable settings:
192.168.4.127 PuTTY
root@Moxa:/ect/rc.d/rc3.d# ls
S20snmpd S55ssh S99rmnologin S99showreadyled
root@Moxa:/etc/rc.d/rc3.d#
#cd /etc/rc.d/init.d
Edit a shell script to execute /home/tcps2-release and save to tcps2 as an example.
#cd /etc/rc.d/rc3.d
#ln –s /etc/rc.d/init.d/tcps2 S60tcps2
SxxRUNFILE stands for
S: start the run file while linux boots up.
xx: a number between 00-99. Smaller numbers have a higher priority.
RUNFILE: the file name.
192.168.4.127 PuTTY
root@Moxa:/ect/rc.d/rc3.d# ls
S20snmpd S55ssh S99rmnologin S99showreadyled
root@Moxa:/ect/rc.d/rc3.d# ln s /root/tcps2-release S60tcps2
root@Moxa:/ect/rc.d/rc3.d# ls
root@Moxa:/ect/rc.d/rc3.d# ls
S20snmpd S55ssh S99rmnologin S99showreadyled
S60tcps2
root@Moxa:/etc/rc.d/rc3.d#
KxxRUNFILE stands for
K: start the run file while linux shuts down or halts.
xx: a number between 00-99. Smaller numbers have a higher priority.
RUNFILE: the file name.
To remove the daemon, remove the run file from the /etc/rc.d/rc3.d directory by using the following
command:

Содержание

Похожие устройства

Скачать
Случайные обсуждения