I can't get the rsh daemon to work when using systemd. I had previously installed OpenRC and then the rsh daemon worked by: /etc/init.d/xinetd start After changing to systemd I tried: systemctl enable xinetd systemctl start xinetd And I am still unable to connect to the machine using rsh In a Fedora-forum I found that it may need the following command: systemctl enable rsh.socket But on my gentoo-machine I get the following error: Failed to issue method call: No such file or directory
In Fedora, they provide .service and .socket files (you need both kind of files): http://pkgs.fedoraproject.org/cgit/rsh.git/tree/ Regarding xinetd not working, it works fine for me for qpopper, and it shouldn't depend on openrc/systemd running as xinetd.service file simply runs xinetd as openrc script does (in summary, running "xinetd --foreground" should work for you) Maybe "systemctl status xinetd" shows some hints
xinetd is working, but it doesn't seem to start the rsh daemon. So I am not sure why it is not working. I still have the /etc/xinet.d/rsh, which was working in OpenRC. I tried to download the fedora-files .service and .socket: /etc/systemd/system/rsh@.socket /etc/systemd/system/rsh.service systemctl start rsh.socket Job for rsh.socket failed. See 'systemctl status rsh.socket' and 'journalctl -xn' for details. systemctl status rsh.socket systemd[1]: rsh.socket failed to listen on sockets: Address already in use systemd[1]: Failed to listen on Remote Shell Facilities Activation Socket.muffe systemd[1]: Unit rsh.socket entered failed state. systemd[1]: Starting Remote Shell Facilities Activation Socket. systemd[1]: rsh.socket failed to listen on sockets: Address already in use ... Did you manage to start the rsh daemon using systemd?
Not sure if that socket is meant to make the service started when someone tries to connect to the port
Maybe you need to run systemctl enable for the sockets
Thanks. I have tried that. Anyone who has started rsh daemon in systemd?
(In reply to helgefje from comment #5) > Anyone who has started rsh daemon in systemd? I got this working on my own system, and uploaded the units to my devspace. http://dev.gentoo.org/~floppym/rsh/ A few pointers: 1. Stop any socket units you may have started. 2. Run systemctl reset-failed to clear out any failures that are hanging around from previous testing. Failure to do so will cause errors like this: systemd[1]: rshd.socket failed to queue service startup job (Maybe the service file is missing or not a template unit?): File exists 3. After replacing the unit files, run systemctl daemon-reload, and then start the socket units. One technical note: I had to add 0.0.0.0 to the ListenStream setting to force it to listen on an IPv4 socket. Otherwise, they throw errors like this. rshd[24516]: malformed "from" address (af 10) Please let me know if this works for you.
I also want to note that rsh works perfectly fine for me on systemd using xinetd instead of the dedicated units.