Autostart Gearman 1.1.12 after restart

Asked by Arash on 2015-03-29

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:
2015-04-04
Last query:
2015-04-04
Last reply:
Vlad (nueprst) said : #1

I have same quiestion. Do you solve it?

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