Automount cifs Network Shares

Problem: I use a VPN to connect to my office. I have network shares that I use, but I don’t want to have to go through the routine of mounting the shares every time I login. If I forget, the software I use lags trying to find a directory that doesn’t exist. If I forget to unmount, my system will sometimes lag after I disconnect from the VPN.

I found the solution in systemd.