Vijay Boyapati
Vijay Boyapati

Reputation: 7708

How do you stop a perl Dancer/Starman/Plack server?

I started a Dancer/Starman server using:

sudo plackup -s Starman -p 5001 -E deployment --workers=10 -a mywebapp/bin/app.pl

but I'm unsure how I can stop the server. Can someone provide me with a quick way of stopping it and all the workers it has spawned?

Upvotes: 12

Views: 3641

Answers (3)

Dung
Dung

Reputation: 20615

On Windows you can do "CTRL + C" like making a copy but Cancel in this case. Tested working.

Upvotes: 0

Shibu
Shibu

Reputation: 141

pkill -f starman

Kill processes based on name.

Upvotes: 1

clt60
clt60

Reputation: 63972

Use the

--pid /path/to/the/pid.file

and you can kill the process based on his PID

So, using the above options, you can use

kill $(cat /path/to/the/pid.file)

the pid.file simply stores the master's PID - don't need analyze the ps output...

Upvotes: 16

Related Questions