Package: rpcbind
Version: 0.2.1-6+deb8u1
Severity: important
Hi,
Running "service rpcbind restart" sometimes causes rpcbind to exit and
not start again. There seems to be a race condition in the init script:
Nov 09 13:40:39 admin systemd[1]: Stopping LSB: RPC portmapper replacement...
Nov 09 13:40:39 admin rpcbind[508]: rpcbind terminating on signal. Restart with
"rpcbind -w"
Nov 09 13:40:39 admin rpcbind[53361]: Stopping rpcbind daemon
Nov 09 13:40:39 admin systemd[1]: Starting LSB: RPC portmapper replacement...
Nov 09 13:40:39 admin rpcbind[53372]: Already running: rcpbind.
Nov 09 13:40:39 admin systemd[1]: Started LSB: RPC portmapper replacement.
The stop action doesn't wait until the rpcbind process has exited, so
rpcbind might still be running when the start action is executed.
Some other init scripts pass --retry to start-stop-daemon to wait for
the daemon to exit. I think that would solve this issue.
-- System Information:
Debian Release: 8.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.2.0-0.bpo.1-amd64 (SMP w/8 CPU cores)
Locale: LANG=sv_SE.utf8, LC_CTYPE=sv_SE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages rpcbind depends on:
ii initscripts 2.88dsf-59
ii insserv 1.14.0-5
ii libc62.19-18+deb8u1
ii libtirpc10.2.5-1
ii libwrap0 7.6.q-25
ii lsb-base 4.1+Debian13+nmu1
rpcbind recommends no packages.
rpcbind suggests no packages.
-- no debconf information