How to stop / start / restart Gearman Server

How to stop, start and restart Gearman server via command line took me a bit to find, so I figured I would post it for future reference…

First, know the path to gearmand and gearadmin, on my server it is:

/usr/bin/gearmand
/usr/bin/gearadmin

How to STOP Gearman Server

gearadmin --shutdown

How to START Gearman Server

gearmand -d

Note: If you are not using a database to queue Gearman worker jobs, that means all pending jobs are in memory, all pending jobs will be lost when you shutdown! If you do use a database, your pending jobs will be available upon restart and will not be lost.

Hope this helps!

😉

what do you think?