Enabling and disabling daemons, Enabling and disabling daemons -2 – Moxa Technologies UC-7110 User Manual

Page 34

Advertising
background image

UC-7110 Series User’s Manual

Configuring UC-7110

4-2

Enabling and Disabling Daemons

The following daemons are enabled when UC-7110 boots up for the first time.

y

SNMP Agent daemon:

snmpd

y

Telnet Server / Client daemon:

telnetd

y

Internet Daemons:

inetd

y

FTP Server / Client daemon:

ftpd

y

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. UC-7110 plays 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 hardware’s real time clock, with the command:
/>hwclock --systohc

Visit

http://www.ntp/org

for a recommended public NTP server list.

How to update the system time periodically via Network Time Protocol

1. Create a shell script file that includes the following description.

#!/bin/sh
ntpdate ntp_server_ip

hwclock –systohc
sleep 100

Å The min time is 100ms.

2. Save and change this shell script to run-able by typing

chmod 755 <shell-script_name>

Edit the file ‘/etc/inittab’ by adding the following line:
ntp: unkown: /directory/<shell_script_name>


Advertising