You need to run a nightly job as a specific user only while they're not logged in, and it should start even if they never log in. How?
AdvancedScenarioProcesses, services and systemd
Answer
Situation read → User-level systemd services need lingering.
What I'd do →
sudo loginctl enable-linger builder
sudo -iu builder
mkdir -p ~/.config/systemd/user
# create job.service and job.timer there
systemctl --user daemon-reload
systemctl --user enable --now job.timer
Why → Without lingering, the user's systemd manager only runs while they have a session, so user units stop at logout.
Interview tip → This is also how rootless Podman containers keep running after logout.
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