You need to stop a service from being started by anyone, even as a dependency, during an investigation. How?
BeginnerScenarioProcesses, services and systemd
Answer
Situation read → disable isn't enough; use mask.
What I'd do →
sudo systemctl stop cups
sudo systemctl mask cups
systemctl status cups # shows "masked"
# later
sudo systemctl unmask cups
Why → Mask links the unit to /dev/null, so neither manual starts nor dependencies can activate it. disable only removes boot-time links.
Interview tip → Remember to mask the .socket too for socket-activated services.
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?BeginnerYou need to change one setting (memory limit) in a vendor-supplied unit file without editing it. 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?Intermediate