Moxa Technologies 331 User Manual Page 31

  • Download
  • Add to my manuals
  • Print
  • Page
    / 69
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 30
Moxa C Programmable RTU Controllers Managing the RTU Controllers
3-5
The following diagram shows how to edit the last line of the rc.local to activate the complied example
tcps2-release, and run in the background.
192.168.127.254 - PuTTY
# !/bin/sh
if [ -f /home/autoexec.sh ]; then
/home/autoexec.sh
fi
# Add the new daemons or programs starting from the next line
/home/tcps2-release &~
The enabled daemons will be available after rebooting the RTU controller.
An alternative is the autoexec.sh located in the /home directory to wake up and activate those daemons and
programs. By editing and updating it to the RTU controller system, users will no longer need to modify the
rc.loca file.
Setting the Run-Level
Perform the following commands to add or delete the settings, such as system service or programs, to the run
levels.
#cd /etc/rc.d/init.d
If there is a program tcps2 at /home, link it to the run level,
#cd /etc/rc.d/rc3.d
#ln s /home/tcps2 S60tcps2
SxxRUNFILE stands for
S:Starts the run file while linux boots up.
xx: A number between 00-99. Smaller numbers have higher priority.
RUNFILE: The file name.
192.168.127.254 - PuTTY
root@Moxa:/ect/rc.d/rc3.d# ls
S19nfs-common S25nfs-user-server S99showreadyled
S20snmpd S55ssh
S24pcmcia S99rmnologin
root@Moxa:/ect/rc.d/rc3.d# ln –s /home/tcps2 S60tcps2
root@Moxa:/ect/rc.d/rc3.d# ls
S19nfs-common S25nfs-user-server S99rmnologin
S20snmpd S55ssh S99showreadyled
S24pcmcia S60tcps2
root@Moxa:/etc/rc.d/rc3.d#
Remove the link by performing the following command:
#rm f /etc/rc.d/rc3.d/S60tcps2
Page view 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 68 69

Comments to this Manuals

No comments