If you use systemd edit servicename.service
you can apply local overrirdes to things in the unit. For your request you might want to adjust these values.
[Service]ExecStartPre=beforestuffExecStopPost=afterstuff
If you override using the edit command the changes will probably get saved to /etc/systemd/system/servicename.service.d/override.conf
.
Links: