I am copying the following systemd service file from an old server to a new one. I'm new to perl, and trying to understand what else needs to move with the service file (aside from the /usr/local/assp contents).
The file contains a PERL5LIB= line and I'm not sure what this does or if it's needed. The old server did have files in /root/perl5/lib/perl5 though I'm not sure what this is for, and the new server does not have this dir. The old server was CentOS7 (perl 5.16.3), while the new one is AlmaLinux9 (perl 5.32.1). I'm guessing this has something to do with compatibility but can't figure it out.
Do I need to recreate this dir? Do I need to change the PERL5LIB line?
[Unit]
Description=AntiSpam SMTP Proxy
After=network.target
[Service]
Type=
Environment=PERL5LIB=/root/perl5/lib/perl5/
ExecStartPre=-rm -f /usr/local/assp/pid
ExecStart=/usr/bin/perl /usr/local/assp/assp.pl /usr/local/assp/
ExecStopPost=-rm -f /usr/local/assp/pid
[Install]
WantedBy=multi-user.target