Moxa IA3341-LX [26/72] Enabling and disabling daemons

Moxa IA3341-LX [26/72] Enabling and disabling daemons
IA3341 Linux User’s Manual Managing Embedded Linux
3-6
Enabling and Disabling Daemons
The following daemons are enabled when the IA3341 boots up for the first time.
Inetd………...Internet Daemons
ftpd…………FTP Server / Client daemon
sshd ………...Secure Shell Server daemon
mbat………..Modbus daemon
Type the command “ps –ef” to list all processes currently running.
192.168.3.127 – PuTTY
root@Moxa:~# cd /etc
root@Moxa:/etc# 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]
66 root 1252 S dhcpcd eth0
78 root 1280 S /bin/inetd
81 bin 1220 S /bin/portmap
86 root 2096 S /bin/sh --login
91 root 1396 S /bin/mbat
163 root 2300 R ps –ef
root@Moxa:/ect#
Starting a Program Automatically at Run-Level
To set a private daemon to run at run-level, you can edit the file rc.local, as follows:
#cd /etc/rc.d
#vi rc.local
192.168.3.127 – PuTTY
root@Moxa:~# cd /etc/rc.d
root@Moxa:/etc/rc.d# vi rc.local
Next, use vi to open your application program. We use the example program tcps2-release, and set
it to run in the background.
192.168.3.127 – PuTTY
# !/bin/sh
# Add you want to run daemon
/root/tcps2-release &~

Содержание

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

Скачать