Moxa DA-662A-I-8-LX [28/63] Setting the run level

Moxa DA-662A-I-8-LX [28/63] Setting the run level
DA-662A Series Software Managing Embedded Linux
3-7
1157 root 21136 S /usr/bin/httpd -k start -d /etc/apache
1159 nobody 21556 S /usr/bin/httpd -k start -d /etc/apache
1160 nobody 21276 S /usr/bin/httpd -k start -d /etc/apache
1161 nobody 21276 S /usr/bin/httpd -k start -d /etc/apache
1162 nobody 21556 S /usr/bin/httpd -k start -d /etc/apache
1163 nobody 21556 S /usr/bin/httpd -k start -d /etc/apache
1179 nobody 21136 S /usr/bin/httpd -k start -d /etc/apache
1184 root 1190 S ./tcps2-release
1186 root 6704 S sshd: root@pts/0
1187 root 2708 S -bash
1189 root 3084 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.3.127 - PuTTY
root@Moxa:/ect/rc.d/rc3.d# ls
S20snmpd S55ssh S99showreadyled
S25nfs-server 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
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
S20snmpd S55ssh S99showreadyled
S25nfs-server S99rmnologin
root@Moxa:/ect/rc.d/rc3.d# ln s /root/tcps2-release S60tcps2
root@Moxa:/ect/rc.d/rc3.d# ls
S20snmpd S55ssh S99showreadyled
S25nfs-server S99rmnologin 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 from 00-99. Smaller numbers have a higher priority.
RUNFILE: is the file name.
For removing the daemon, you can remove the run file from /etc/rc.d/rc3.d by using the following
command:
#rm f /etc/rc.d/rc3.d/S60tcps2

Содержание

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

Скачать