I am currently looking for a daemonize perl script. Unfortunately, most of the answers are outdated, and I really donβt really understand how to start the daemon process (especially perem daemon scripts).
Now I'm looking at Proc Daemon, but again I donβt know where to start, or whether it should be done with or without modules.
I believe that if I give an example of what I am looking to ask this question a little more.
Example
Say I'm on osx and I want to write a perl script that can work as a daemon. It responds to a HUP signal, which then proceeds to print the contents of the file from a specific directory. If it receives a USR1 signal, it prints the content in different ways. What is the most suitable way to do this as a demon?
source
share