Autostart Gearman 1.1.12 after restart

Asked by Arash

Hi,
I've complied gearman version 1.1.12 successfully on Debian and everything is working fine however i noticed that gearmand has no autostart script in init.d folder and it is not beign started automatically.
What should i do to make it autostart after restarts?
I'm using supervisored for managing gearman workers so the gearman needs to be started before supervisored, how can i do that?

Question information

Language:
English Edit question
Status:
Solved
For:
Gearman Edit question
Assignee:
No assignee Edit question
Solved by:
Arash
Solved:
Last query:
Last reply:
Revision history for this message
Vlad (nueprst) said :
#1

I have same quiestion. Do you solve it?

Revision history for this message
Arash (arash-hemmat) said :
#2

Hi Vlad,
It seems like there is no easy way for solving this problem, so i had to create a init.d script for it:

https://gist.github.com/anonymous/f41487d04898ecfebe41

you must put this script in /etc/init.d folder, name it gearmand for example then run:

update-rc.d gearmand defaults

i hope it solves your problem