xinetd and rsh problem (SOLVED)

soolan

Member
Joined
Jan 13, 2023
Messages
66
Reaction score
4
Credits
626
Hello

I have two server. both the same
Two SERVER OS version : Oracle Linux 7.9

A server (oracle linux 7.9)
service xinetd start
Redirecting to /bin/systemctl start xinetd.service

B server (oracle linux 7.9)
service xinetd start
Starting xinetd:

A server to B server RSH
rsh B df -h
poll: protocol failure in circuit setup

B server to A server RSH
rsh A df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 504G 0 504G 0% /dev
tmpfs 504G 0 504G 0% /dev/shm
tmpfs 504G 19M 504G 1% /run
tmpfs 504G 0 504G 0% /sys/fs/cgroup
/dev/sda3 2.0T 195G 818G /


[root@Bserver ~]# systemctl status xinetd
● xinetd.service - Xinetd A Powerful Replacement For Inetd
Loaded: loaded (/usr/lib/systemd/system/xinetd.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Thu 2023-02-23 01:33:35 +03; 2min 59s ago
Process: 14354 ExecStart=/usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid $EXTRAOPTIONS (code=exited, status=0/SUCCESS)
Main PID: 14356 (code=exited, status=0/SUCCESS)

Feb 23 01:29:02 Bserver xinetd[14356]: removing rsync
Feb 23 01:29:02 Bserver xinetd[14356]: removing tcpmux
Feb 23 01:29:02 Bserver xinetd[14356]: removing time
Feb 23 01:29:02 Bserver xinetd[14356]: removing time
Feb 23 01:29:02 Bserver xinetd[14356]: bind failed (Address already in use (errno = 98)). service = shell
Feb 23 01:29:02 Bserver xinetd[14356]: Service shell failed to start and is deactivated.
Feb 23 01:29:02 Bserver xinetd[14356]: xinetd Version 2.3.15 started with libwrap loadavg labeled-networking options compiled in.
Feb 23 01:29:02 Bserver xinetd[14356]: Started working: 0 available services
Feb 23 01:33:35 Bserver [1]: Stopping Xinetd A Powerful Replacement For Inetd...
Feb 23 01:33:35 Bserver systemd[1]: Stopped Xinetd A Powerful Replacement For Inetd.

BUT
service xinetd status
xinetd (pid 41450 12977 667) is running..

---------------------
A SERVER
[root@localhost ~]# service xinetd status
Redirecting to /bin/systemctl status xinetd.service
● xinetd.service - Xinetd A Powerful Replacement For Inetd
Loaded: loaded (/usr/lib/systemd/system/xinetd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-02-23 01:15:43 +03; 25min ago
Main PID: 30212 (xinetd)
Tasks: 1
CGroup: /system.slice/xinetd.service
└─30212 /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid

Feb 23 01:15:43 localhost.localdomain xinetd[30212]: removing daytime
Feb 23 01:15:43 localhost.localdomain xinetd[30212]: removing discard
Feb 23 01:15:43 localhost.localdomain xinetd[30212]: removing discard
Feb 23 01:15:43 localhost.localdomain xinetd[30212]: removing echo
Feb 23 01:15:43 localhost.localdomain xinetd[30212]: removing echo
Feb 23 01:15:43 localhost.localdomain xinetd[30212]: removing tcpmux
Feb 23 01:15:43 localhost.localdomain xinetd[30212]: removing time
Feb 23 01:15:43 localhost.localdomain xinetd[30212]: removing time
Feb 23 01:15:43 localhost.localdomain xinetd[30212]: xinetd Version 2.3.15 started with libwrap loadavg labeled-networking options compiled in.
Feb 23 01:15:43 localhost.localdomain xinetd[30212]: Started working: 0 available services

[root@localhost ~]# systemctl status xinetd
● xinetd.service - Xinetd A Powerful Replacement For Inetd
Loaded: loaded (/usr/lib/systemd/system/xinetd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-02-23 01:15:43 +03; 26min ago
Main PID: 30212 (xinetd)
Tasks: 1
CGroup: /system.slice/xinetd.service
└─30212 /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid

Feb 23 01:15:43 localhost.localdomain xinetd[30212]: removing daytime
Feb 23 01:15:43 localhost.localdomain xinetd[30212]: removing discard
Feb 23 01:15:43 localhost.localdomain xinetd[30212]: removing discard
Feb 23 01:15:43 localhost.localdomain xinetd[30212]: removing echo
Feb 23 01:15:43 localhost.localdomain xinetd[30212]: removing echo
Feb 23 01:15:43 localhost.localdomain xinetd[30212]: removing tcpmux
Feb 23 01:15:43 localhost.localdomain xinetd[30212]: removing time
Feb 23 01:15:43 localhost.localdomain xinetd[30212]: removing time
Feb 23 01:15:43 localhost.localdomain xinetd[30212]: xinetd Version 2.3.15 started with libwrap loadavg labeled-networking options compiled in.
Feb 23 01:15:43 localhost.localdomain xinetd[30212]: Started working: 0 available services
 


My problem solved

B server systemctl status xinetd command result is
inactive

but
service xinetd status command output is
xinetd service running

I uninstall xinetd rpm but service still is running

I kill used xinetd service pid and rpm installed.

i can do rsh from A to B server.
 

Members online


Top