portmap misses a stop stanza

Bug #483768 reported by Egon Alter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
portmap (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: portmap

portmap never stops. head of portmap.conf in karmic:

# portmap - RPC port mapper

# Portmap is a server that converts RPC (Remote Procedure Call) program
# numbers into DARPA protocol port numbers. It must be running in order
# to make RPC calls.

description "RPC port mapper"
author "Steve Langasek <email address hidden>"

start on (local-filesystems
          and net-device-up IFACE=lo)

expect fork
respawn
...

this results in gssd and rpc.statd also to keep going until power-off.

why http://launchpadlibrarian.net/32672931/portmap-431248.diff didn't made it in?

maybe related: during shutdown, rpc.statd repawns several times.

Revision history for this message
Steve Langasek (vorlon) wrote :

Thank you for taking the time to report this issue and help to improve Ubuntu.

This is not a bug. portmap is not *supposed* to be stopped until the very end of shutdown/reboot, since it's needed until after any NFS mounts are unmounted.

Changed in portmap (Ubuntu):
status: New → Invalid
Revision history for this message
Egon Alter (egon-alter) wrote :

Which NFS shares are still active after network is down? Only exception I can think of is nfsroot (does it need portmap? is networking stopped at all in this case?). I don't want to be pedantic here, but something is wrong:

root@AX2-5200p:/etc/init# grep "stop.*portmap" *
gssd.conf:stop on (stopping portmap or runlevel [06])
statd.conf:stop on stopping portmap

Revision history for this message
Steve Langasek (vorlon) wrote :

Networking shutdown is currently not handled by upstart in all cases, so there's no way to stop portmap after the remote filesystems are unmounted but before the network is stopped. As a result, we need to leave portmap running until the end because there's no other way to make sure it stays running as long as it needs to be.

root@AX2-5200p:/etc/init# grep "stop.*portmap" *
gssd.conf:stop on (stopping portmap or runlevel [06])
statd.conf:stop on stopping portmap

This indicates that the two services should be stopped whenever portmap is stopped. portmap can be stopped manually.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.