/etc/init.d/rtorrentd couldn't start during bootup because the user specified in /etc/conf.d/rtorrentd isn't known yet. Reason is the user isn't known because the specified user is an user made available through an LDAP Database. Because rtorrentd is started BEFORE slapd, this problem exists. Reproducible: Always Steps to Reproduce: set up an LDAP Central Authentication Server and populate it with users 1. edit /etc/conf.d/rtorrentd and choose an user ONLY present in LDAP Database (not in /etc/passwd or /etc/shadow) 2. add rtorrentd to default runlevel (rc-update add rtorrentd default) 3. reboot machine Actual Results: rtorrentd couldn't find the user to run as Expected Results: rtorrent should run as the specified user I'm not sure, but i think a simple "after LDAP" in the /etc/init.d/rtorrentd file could fix this.
Reassigning to/CCing maintainers.
(In reply to comment #0) > I'm not sure, but i think a simple "after LDAP" in the /etc/init.d/rtorrentd > file could fix this. I don't have access to any such ldap setups. Please test and report back.
I think it's better to change the use line to "use ypbind slapd net" To allow also nis users
(In reply to comment #3) > I think it's better to change the use line to "use ypbind slapd net" > To allow also nis users > ok, after changing the line use net.* to use ypbind slapd net i rebooted the machine and rtorrent was running fine in a screen session. So I guess this issue is fixed. I did not test the NIS stuff because i am not running NIS. However, another issue appeared: To stop rtorrentd i had to enter /etc/init.d/rtorrentd stop twice. The output from the first try : * Stopping rtorrent ... [ !! ] Second try: * Stopping rtorrent ... [ ok ] I tried and switched to the screen session running rtorrent and tried /etc/init.d/rtorrentd stop (the first try) , and the rtorrent session was properly shutdown (it takes a couple of seconds to disannounce to the trackers) and the screen session closed. Why do i have to stop it twice ?
I think adding some kind of waiting time or PID check might help if I'm correct... (In reply to comment #4) > (In reply to comment #3) > > I think it's better to change the use line to "use ypbind slapd net" > > To allow also nis users > > > > ok, after changing the line > > use net.* > > to > > use ypbind slapd net > > i rebooted the machine and rtorrent was running fine in a screen session. So I > guess this issue is fixed. I did not test the NIS stuff because i am not > running NIS. > > However, another issue appeared: > > > To stop rtorrentd i had to enter /etc/init.d/rtorrentd stop twice. > > The output from the first try : > > * Stopping rtorrent ... [ !! > ] > > Second try: > > * Stopping rtorrent ... [ ok > ] > > I tried and switched to the screen session running rtorrent and tried > /etc/init.d/rtorrentd stop (the first try) , and the rtorrent session was > properly shutdown (it takes a couple of seconds to disannounce to the trackers) > and the screen session closed. Why do i have to stop it twice ? >
Updated the init.d, no version bump, as it's quite obscure I feel.
(In reply to comment #6) > Updated the init.d, no version bump, as it's quite obscure I feel. Hmm, imho: Two diffrent user emerge rttorrent on diffrent time, they get diffrent init.d scripts but they have rtorrent in the same version. How can they compare behavior this soft? Imho it should be next -r .