Hi, I'm trying to register my hypnotoad daemon as a service in
cat /lib/systemd/system/ccdapi.service
[Unit]
Description=MY CCDAPI LAB
Requires=network.target
After=network.target
User=ccdapi
Group=ccdapi
# put here other service requirements
[Service]
User=ccdapi
Group=ccdapi
Type=simple
R
Hi, I'm trying to register my hypnotoad daemon as a service in
cat /lib/systemd/system/ccdapi.service
[Unit]
Description=MY CCDAPI LAB
Requires=network.target
After=network.target
User=ccdapi
Group=ccdapi
# put here other service requirements
[Service]
User=ccdapi
Group=ccdapi
Type=simple
R
You have installed it to a local::lib in the perlbrew. The systemd service
won't have that active. You could fix it by adding to the [Service] block:
Environment="PERL5LIB=/srv/ccdapi/.perlbrew/libs/perl-5.24.0@ccdapi
/lib/perl5"
On Wed, Apr 28, 2021 at 5:28 PM llaro...@gmail.com
wrote:
> Hi, I
On Wed, Apr 28, 2021 at 5:28 PM llaro...@gmail.com
wrote:
> And I have added the path with "use lib qw(/my/path/) such as
>
> [ccdapi@vl-vm-sr824 ~]$ head ./VM01/PROD/v1/ccdapi.pl
> use lib qw(/srv/ccdapi/perl5/lib/perl5/);
> use Mojolicious::Lite;
>
Make sure to remove this. The local::lib you
I removed the first line and added the "Environment" entry in Service
section, now I have a new issue ... home made modules
Apr 28 20:10:45 vl-vm-sr824.lb systemd[1]: Started MY CCDAPI LAB.
Apr 28 20:10:45 vl-vm-sr824.lb systemd[1]: Starting MY CCDAPI LAB...
Apr 28 20:10:45 vl-vm-sr824.lb ccdapi[
You have to add the path that contains the Methods directory, not the
Methods directory itself.
If it's deployed relative to your script, consider adding it like in this
example: https://metacpan.org/pod/Mojolicious::Guides::Growing#Script
# add directory script is in
use lib curfile->dir