Moxa C Programmable RTU Controllers Managing the RTU Controllers
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.
if [ -f /home/autoexec.sh ]; then
/home/autoexec.sh
fi
# Add the new daemons or programs starting from the next line
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.
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
Comments to this Manuals