Moxa IA3341-LX [27/72] Setting the run level

Moxa IA3341-LX [27/72] Setting the run level
IA3341 Linux User’s Manual Managing Embedded Linux
3-7
You will find that the following daemons are enabled after you reboot the system.
192.168.3.127 – PuTTY
root@Moxa:~# ps -ef
PID USER VSZ STAT COMMAND
1 root 1248 S init [3]
2 root 0 SWN [ksoftirqd/0]
3 root 0 SW< [events/0]
4 root 0 SW< [khelper]
5 root 0 SW< [kblockd/0]
7 root 0 SW [pdflush]
6 root 0 SW [khubd]
8 root 0 SW [pdflush]
10 root 0 SW< [aio/0]
9 root 0 SW [kswapd0]
11 root 0 SW [mxcrypto_dispat]
12 root 0 SW [mtdblockd]
13 root 0 SW< [kmmcd]
23 root 0 SWN [jffs2_gcd_mtd3]
60 root 1252 S dhcpcd eth0
72 root 1280 S /bin/inetd
75 bin 1220 S /bin/portmap
77 root 1312 S /root/tcps2-release
81 root 2084 S /bin/sh --login
86 root 1396 S /bin/mbat
90 root 1596 S /bin/ATSAGENT
91 root 2300 R ps –ef
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.3.127 – PuTTY
root@Moxa:/ect/rc.d/rc3.d# ls
S99mbat S99rmnologin S99showreadyled
root@Moxa:/etc/rc.d/rc3.d#
#cd /etc/rc.d/init.d
Edit a shell script to execute /root/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. The smaller number has a higher priority.
RUNFILE: the file name.
192.168.3.127 – PuTTY
root@Moxa:/ect/rc.d/rc3.d# ls
S99mbat S99rmnologin S99showreadyled
root@Moxa:/ect/rc.d/rc3.d# ln –s /root/tcps2-release S60tcps2
root@Moxa:/ect/rc.d/rc3.d# ls
S99mbat S99rmnologin S99showreadyled S60tcps2
root@Moxa:/etc/rc.d/rc3.d#

Содержание

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

Скачать