Setting the run-level – Moxa Technologies UC-7420/7410 User Manual
Page 48
UC-7420/7410 User’s Manual
Managing Embedded Linux
3-8
192.168.3.127 – PuTTY
root@Moxa:~# ps -ef
PID Uid VmSize Stat Command
1 root 1296 S init
2 root S [keventd]
3 root S [ksoftirqd_CPU0]
4 root S [kswapd]
5 root S [bdflush]
6 root S [kupdated]
7 root S [mtdblockd]
8 root S [khubd]
10 root S [jffs2_gcd_mtd3]
32 root D [ixp425_csr]
34 root S [ixp425 ixp0]
36 root S [ixp425 ixp1]
38 root 1256 S stdef
47 root 1368 S /usr/sbin/inetd
53 root 4464 S /usr/sbin/httpd
63 nobody 4480 S /usr/sbin/httpd
64 nobody 4480 S /usr/sbin/httpd
65 nobody 4480 S /usr/sbin/httpd
66 nobody 4480 S /usr/sbin/httpd
67 nobody 4480 S /usr/sbin/httpd
92 bin 1460 S /sbin/portmap
97 root 1264 S /root/tcps2-release
105 root 1556 S /usr/sbin/rpc.statd
109 root 4044 S /usr/sbin/snmpd –s –l /dev/null
111 root 2832 S /usr/sbin/snmptrapd -s
140 root 1364 S /sbin/cardmgr
144 root 1756 S /usr/sbin/rpc.nfsd
146 root 1780 S /usr/sbin/rpc.mountd
153 root 2960 S /usr/sbin/sshd
161 root 1272 S /bin/reportip
162 root 3464 S /bin/massupfirm
163 root 1532 S /sbin/getty 115200 ttyS0
164 root 1532 S /sbin/getty 115200 ttyS1
166 root 3464 S /bin/massupfirm
168 root 3464 S /bin/massupfirm
171 root 3652 S /usr/sbin/sshd
172 root 2200 S -bash
174 root 1592 S 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
S19nfs-common S25nfs-user-server
S99showreadyled
S20snmpd S55ssh
S24pcmcia S99rmnologin
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