You need to change one setting (memory limit) in a vendor-supplied unit file without editing it. How?
BeginnerScenarioProcesses, services and systemd
Answer
Situation read → Use a drop-in override.
What I'd do →
sudo systemctl edit vendor-agent
Add:
[Service]
MemoryMax=512M
Save; systemd writes /etc/systemd/system/vendor-agent.service.d/override.conf and reloads. Restart the service and check with systemctl show vendor-agent -p MemoryMax or systemctl cat vendor-agent.
Why → Package upgrades overwrite /usr/lib/systemd/system/*.service, but never your drop-ins.
Interview tip → To clear a list setting like ExecStart, write an empty ExecStart= line first in the drop-in.
More on Processes, services and systemd
Your team has a Python API that someone starts with `nohup python app.py &`. Make it a proper service running as a non-root user.BeginnerThe service you created must bind to port 443, but it runs as a non-root user. How?BeginnerA service depends on a database on the same host and fails at boot because the DB isn't ready. How do you fix the ordering?IntermediateA service keeps crashing and systemd stops restarting it after a few attempts. How do you tune this?IntermediateA long-running app must reload its config without dropping connections. How do you wire this into systemd?IntermediateA script needs to run once at boot after networking, then exit. How do you do it with systemd?Beginner