Moxa DA-685-LX [13/76] Da 685 linux software configuration

Moxa DA-685-LX [13/76] Da 685 linux software configuration
DA-685 Linux Software Configuration
2-8
Next, add the application daemon that you want to run. We use the example program tcps2-release, which
you can find in the CD to illustrate, and configure it to run in the background.
After you finish writing or modifying the code, remember to execute “umount /” to change the root directory
back to Read-only mode.
You should be able to find the enabled daemon after you reboot the system.
Moxa:~# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 00:02 ? 00:00:00 init [2]
root 2 0 0 00:02 ? 00:00:00 [kthreadd]
root 3 2 0 00:02 ? 00:00:00 [migration/0]
root 4 2 0 00:02 ? 00:00:00 [ksoftirqd/0]
root 5 2 0 00:02 ? 00:00:00 [watchdog/0]
root 6 2 0 00:02 ? 00:00:00 [migration/1]
root 7 2 0 00:02 ? 00:00:00 [ksoftirqd/1]
root 8 2 0 00:02 ? 00:00:00 [watchdog/1]
root 9 2 0 00:02 ? 00:00:00 [events/0]
root 10 2 0 00:02 ? 00:00:00 [events/1]
root 11 2 0 00:02 ? 00:00:00 [cpuset]
root 12 2 0 00:02 ? 00:00:00 [khelper]
root 13 2 0 00:02 ? 00:00:00 [netns]
root 14 2 0 00:02 ? 00:00:00 [async/mgr]
root 15 2 0 00:02 ? 00:00:00 [pm]
root 17 2 0 00:02 ? 00:00:00 [sync_supers]
root 18 2 0 00:02 ? 00:00:00 [bdi-default]
root 19 2 0 00:02 ? 00:00:00 [kintegrityd/0]
root 20 2 0 00:02 ? 00:00:00 [kintegrityd/1]
root 21 2 0 00:02 ? 00:00:00 [kblockd/0]
root 22 2 0 00:02 ? 00:00:00 [kblockd/1]
root 23 2 0 00:02 ? 00:00:00 [kacpid]
root 24 2 0 00:02 ? 00:00:00 [kacpi_notify]
root 25 2 0 00:02 ? 00:00:00 [kacpi_hotplug]
root 26 2 0 00:02 ? 00:00:00 [tcps2-release]
root 27 2 0 00:02 ? 00:00:00 [ata/0]
root 28 2 0 00:02 ? 00:00:00 [ata/1]
...
www-data 2707 2664 0 00:03 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 2708 2664 0 00:03 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 2709 2664 0 00:03 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 2710 2664 0 00:03 ? 00:00:00 /usr/sbin/apache2 -k start
root 2720 2700 0 00:15 tty1 00:00:00 -bash
root 2724 2 0 00:15 ? 00:00:00 [flush-8:0]
root 2745 2536 1 00:21 ? 00:00:00 sshd: root@pts/0
MOXA:~# umount /
# !/bin/sh
# Add the daemon you want to run
/root/tcps2-release &~
MOXA:/etc/# vi rc.local

Содержание

Скачать