Lube oil is used in diesel engines:

To ignite

2 and 3 both

To cool the engine

To reduce friction