Moxa UC-7110-LX [24/46] Enabling and disabling daemons

Moxa UC-7110-LX [24/46] Enabling and disabling daemons
UC-7101/7110/7112 Software User’s Manual Configuring UC-7101/7110/7112
4-2
Enabling and Disabling Daemons
The following daemons are enabled when the UC-7101/7110/7112 boot up for the first time.
SNMP Agent daemon: snmpd
Telnet Server / Client daemon: telnetd
Internet Daemons: inetd
FTP Server / Client daemon: ftpd
WWW Server daemon: boa
ATTENTION
How to enable/disable telnet/ftp server
a. Edit the file /etc/inetd.conf
Example (default enable):
discard dgram udp wait root /bin/discard
discard stream tcp nowait root /bin/discard
telnet stream tcp nowait root /bin/telnetd
ftp stream tcp nowait root /bin/ftpd -l
b. Disable the daemon by typing ‘#’ in front of the first character of the row.
How to enable/disable /etc/inittab www server
a. Edit the file /etc/inittab
b. Disable the www service by typing “#” in front of the first character of the row.
How to enable Network Time Protocol
ntpdate is a time adjusting client utility. The UC-7101/7110/7112 play the role of Time client,
and sends requests to the Network Time Server to request the correct time.
Set the time server address for adjusting the system time with the command:
/>ntpdate ntp_server_ip
Save the system time to the hardwares real time clock with the command:
/>hwclock -w
Visit http://www.ntp/org
for a list of recommended public NTP servers.
How to update the system time periodically with Network Time Protocol
1. Create a shell script file that includes the following description.
#!/bin/sh
ntpdate ntp_server_ip
hwclock –w
sleep 100
The min time is 100ms.
2. Save and make this shell script executable by typing
chmod 755 <shell-script_name>
Edit the file /etc/inittabby adding the following line:
ntp: unknown: /directory/<shell_script_name>

Содержание

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

Скачать