質問

I would like to know if there is a Perl tool like supervisord to manage processes.

http://supervisord.org/

I have seen a Perl program called Supervisor, but I don't know if it is as good as the Python one:

https://metacpan.org/pod/Supervisor

I want to be able to start a plack server and have a monitor that restart it if necessary.

I use perlbrew, I thought of making a shell script to start the server and then have a configuration like this:

[program:my_app]
directory = /home/username/my_app
user = username
command = /home/username/wmy_app/starman.sh
stdout_logfile=/var/log/supervisor/%(program_name)s_stdout.log
stderr_logfile=/var/log/supervisor/%(program_name)s_stderr.log

Did you used Supervisord for Perl projects with plack, starman and perlbrew. What do you suggest?

My question is open to understand what would be best for my plack server in production.

Thanks

役に立ちましたか?

解決

Why do you want a perl program to handle that?

There is two recent alternatives you may want to look at:

If your program is a daemon, why don't you use Runit, Upstart or Systemd

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top