ThinkCore W311/321/341 Linux User’s Manual Managing Embedded Linux

3-8

The enabled daemons will be available after you reboot the system.

192.168.3.127 – PuTTY
root@Moxa:~# ps -ef
PID Uid VmSize Stat Command
1 root 532 S init [3]
2 root SWN [ksoftirqd/0]
3 root SW< [events/0]
4 root SW< [khelper]
13 root SW< [kblockd/0]
14 root SW [khubd]
24 root SW [pdflush]
25 root SW [pdflush]
27 root SW< [aio/0]
26 root SW [kswapd0]
604 root SW [mtdblockd]
609 root SW [pccardd]
611 root SW [pccardd]
625 root SWN [jffs2_gcd_mtd3]
673 root 500 S /bin/inetd
674 root 1264 S /root/tcps2-release
679 root 3004 S /usr/bin/httpd -k start -d /etc/apache
682 bin 380 S /bin/portmap
685 root 1176 S /bin/sh --login
690 root 464 S /bin/snmpd
694 nobody 3012 S /usr/bin/httpd -k start -d /etc/apache
695 nobody 3012 S /usr/bin/httpd -k start -d /etc/apache
696 nobody 3012 S /usr/bin/httpd -k start -d /etc/apache
697 nobody 3012 S /usr/bin/httpd -k start -d /etc/apache
698 nobody 3012 S /usr/bin/httpd -k start -d /etc/apache
701 root 352 S /bin/reportip
714 root 1176 S -bash
726 root 436 S /bin/telnetd
727 root 1180 S -bash
783 root 628 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
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

/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.