Install libdaemon-control-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libdaemon-control-perl
Description:
module for creating init scripts in Perl
Daemon::Control provides a library for creating init scripts in Perl. Your Perl script just needs to set the accessors for what and how you want something to run and the library takes care of the rest. . You can launch programs through the shell (/usr/sbin/my_program) or launch Perl code itself into a daemon mode. Single and double fork methods are supported and in double-fork mode all the things you would expect like reopening STDOUT/STDERR, switching UID/GID are supported.
Homepage: https://metacpan.org/release/Daemon-Control
Version: 0.001008-1
Section: universe/perl