I have a systemd script that is supposed to run tootctl on a regular basis to clear out old crap. The unit specifies the mastodon user and group. It calls a script in /home/mastodon/scripts that changes to the live/ directory and calls bin/tootctl <vars> a few times, after specifying `RAILS_ENV=production`.
If I run this script from the mastodon user, it runs properly.
If I call it with systemd, it falls over with code 127 (or command not found).
wtf am I doing wrong?
@northernscrub PATH?