Confirmed, there's a race condition here. The race-free fix would be:
start portmap || true status portmap | grep -q start/running
Confirmed, there's a race condition here. The race-free fix would be:
start portmap || true
status portmap | grep -q start/running