Reload SystemD unit file before restarting the service
If the SystemD unit file changes, i.e. when the memory settings changes, the file needs to be reloaded by SystemD before restarting the service. This is done by calling
/bin/systemctl daemon-reload
.