The systemd service runs as root so /root is /root, but config is written to /etc/servermanager/agent.conf. The agent now tries: 1. Path from command-line argument 2. /etc/servermanager/agent.conf (system mode) 3. $HOME/.config/servermanager/agent.conf (user mode) Service ExecStart and cron job both pass the config path explicitly.