How to shutdown my Jenkins safely?
Use http://[jenkins-server]/exit
This page shows how to use URL commands.
If you would like to stop jenkins and all its services on the server using Linux console (e.g. Ubuntu), run:
service jenkins start/stop/restart
This is useful when you need to make an image/volume snapshot and you want all services to stop writing to the disk/volume.