Operating Systems
Bug Report
Script works in the shell but fails as a systemd service: PATH and missing environment
Our nightly report export ran perfectly when we typed it, and failed every night as a systemd service with node: command not found. Services get no login shell, no .bashrc and a working directory of /. Here is how we made the unit self-contained.