logrotate - How can Dancer app process HUP signal to close/reopen logfile

I wrote a Dancer app, with the log config:logger: filelogger_format: <%T> %mlog_path: '/usr/local/myapp/log'log_file: 'myapp.log'log: debugand start it with:plackup -E deployment -D -s Starman --workers=10 --port 8080 -a bin/app.plrotate the log file with logrotate/usr/local/myapp/log/myapp.log { daily rotate 10 create 0660 root root compress missingok dateext}but the new logfile is zero.I tried to add postrotate in logrotate conf to send HUP and process HUP sinal in bin/app.pl with Dancer::Log...Read more

dancer - How to stop plackup

I'm trying to develop web pages for the first time, so please bear with me. I'm following the tutorial explained here- https://metacpan.org/pod/distribution/Dancer2/lib/Dancer2/Tutorial.podI ran plackup to start the application using plackup app.psgi. When I loaded localhost:5000 I saw that the webpage had few missing fields so I stopped plackup using Ctrl+Z. Now when I use plackup app.psgi, I get the error- failed to listen to port 5000: Address already in use at /usr/local/share/perl/5.22.1/HTTP/Server/PSGI.pm line 103.When I go to localhost:...Read more