[Dancer-users] many dancer apps with Starman (part 3)

Mr. Puneet Kishor punk.kish at gmail.com
Fri Jul 15 15:15:14 CEST 2011

me continuing to be dense below --

On Jul 15, 2011, at 3:05 AM, Pedro Melo wrote:

> Hi,
> On Thu, Jul 14, 2011 at 10:57 PM, Mr. Puneet Kishor <punk.kish at gmail.com> wrote:
>> On Jul 11, 2011, at 6:59 AM, Pedro Melo wrote:
>>> First: Use the --pid option of plackup and give it a very descriptive
>>> name, in a well known directory. With that, you can use kill
>>> -SIGNAL_NAME `head -1 /path/to/pids/app_descriptive_name` ... You can
>>> even use tab completion.
> [...]
>> What is the way to restart an already running app? Am I the only one who is a bit lost with the documentation for Starman and other servers (or, even the plackup documentation)?
> Err :)... Starman perldoc, under DESCRIPTION, the Signals item starts
> with: "Supports HUP for graceful restarts..."...

Yes, I read that, but I don't know what that means (I know more Unix than my neighbor, but that is still waaaaay too little). I know that Ctrl-C sends a HUP, and so does `kill`, doesn't it?

> Use the --pid option to write the master process pid number to a file
> so you don't have to use ps (which on Mac OS X lacks the -f option
> unfortunately).

Yes, I am able to use your suggested technique

  $ kill `head -1 /path/to/pidfile/with/descriptive/name`

What SIGNAL can I send for a restart?


More information about the Dancer-users mailing list