Installation on arch linux won't start due to missing exiftool

Seems like it doesn’t here on Arch Linux using OTP using a systemd service.

Nov 26 04:23:02 plem.sapphic.site systemd[1]: Starting Akkoma social network...
Nov 26 04:23:02 plem.sapphic.site echo[25376]: /usr/local/sbin:/usr/local/bin:/usr/bin
# akkoma.service
ExecStartPre=echo $PATH                                                                                                                                                                                          ExecStart=/opt/akkoma/bin/pleroma start
# my normal PATH
adm-tpyrope@corp.terezi.dev √ /home/tpyrope % echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

This is an intended design by systemd because it heavily discourages modifying PATH during runtime for any services. This also means it does not execute anything under /etc/profile.d/*, which is where one of the necessary Perl shell scripts are (perlbin.sh). Ideally you could just set ExecStartPre=/bin/bash -c "/etc/profile.d/perlbin.sh", but Arch Linux installs the script’s permissions as 644 which are not executable.

The only proper solution I’ve found is to manually define your path with Environment=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl in the systemd unit (akkoma.service).

Nov 26 04:50:20 plem.sapphic.site echo[26391]: /usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl