I have a xinetd service from Centos6 and I want to port to Centos7 ie create a systemd service
# cat /etc/xinetd.d/br_rsh
# default: on
# description: The rshd server is the server for the rcmd(3) routine and, \
# consequently, for the rsh(1) program. The server provides \
# remote execution facilities with authentication based on \
# privileged port numbers from trusted hosts.
service brshell
{
port = 591
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.br_rshd
disable = no
}
If i understood correctly, i need to break down the above file to two parts: one for brshell.socket and another for brshell.service. Then, I need to execute systemctl enable brshell.socket
(what about brshell.service?)
What would these files look like and Where would these files go under?
Thank you