In past few days, I sent some p-r to Sever-Stater. This is my note around these commits.
I added --stop
option. You can stop server process by this option.
Then, we can write deployment script easier.
Few days ago, I added --port=$PORT=$FD
option. But it doesn't work with
--daemon
option. Because --daemon
option closes STDIN after
duplicate fd.
In this p-r, --daemon
option don't close STDIN if file descriptor zero
is duplicated fd.
https://github.com/kazuho/p5-Server-Starter/pull/32
server::starter unlink the status-file before exit. It remove another server-stater process' status file.
This issue caused by user's miss operation, but it's serious issue.
In this case, 2nd step unlinks foo.status. As a result, 3rd step wouldn't work.