![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Re^3: How to deliver a perl application to a client?by daxim (Curate) |
on Oct 20, 2019 at 19:16 UTC ( [id://11107731]=note: print w/replies, xml ) | Need Help?? |
I have read the sibling comment thread. Using perlbrew/cpanm on the production system is not a good idea, IMO.
I don't have experience with FreeBSD. Found instructions: http://lastsummer.de/creating-custom-packages-on-freebsd/ I need to know the Linux distro so I can also link you to the appropriate Web site. Meanwhile I'm going to assume you're targetting deb/rpm and systemd, that already covers a lot of what's running out there in the wild.
Create new user for executing the applicationWhat purpose does it serve? Can't the software run just under a normal user account, like 97% of the other packages on any ordinary system?
It can be run both via cron and as service.You achieve this simply by shipping a .timer file and corresponding .service file as part of the package. There are many tutorials, I like https://wiki.archlinux.org/index.php/Systemd/Timers. Also see /usr/lib/systemd/system/* for local examples.
In Section
Seekers of Perl Wisdom
|
|