Merge lp:~schkovich/gearmand/gearmand into lp:gearmand

Proposed by Brian Aker
Status: Merged
Merged at revision: 679
Proposed branch: lp:~schkovich/gearmand/gearmand
Merge into: lp:gearmand
Diff against target: 88 lines (+64/-0)
4 files modified
scripts/upstart/gearman-job-server-monitor (+10/-0)
scripts/upstart/gearman-job-server.conf (+26/-0)
scripts/upstart/gearmand-init (+2/-0)
scripts/upstart/german-job-server.override (+26/-0)
To merge this branch: bzr merge lp:~schkovich/gearmand/gearmand
Reviewer Review Type Date Requested Status
Tangent Trunk Pending
Review via email: mp+140699@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'scripts/upstart'
2=== added file 'scripts/upstart/gearman-job-server-monitor'
3--- scripts/upstart/gearman-job-server-monitor 1970-01-01 00:00:00 +0000
4+++ scripts/upstart/gearman-job-server-monitor 2012-12-19 15:28:26 +0000
5@@ -0,0 +1,10 @@
6+description "Notify root about gearman job server respawn limit reached"
7+author "Goran Miskovic <goran.v.miskovic@gmail.com>"
8+
9+task
10+
11+start on stopped gearman-job-server PROCESS=respawn
12+
13+script
14+ echo "Gearman Job Server reached respawn limit" | mail -s "Gearman Job Server Crashed" root
15+end script
16\ No newline at end of file
17
18=== added file 'scripts/upstart/gearman-job-server.conf'
19--- scripts/upstart/gearman-job-server.conf 1970-01-01 00:00:00 +0000
20+++ scripts/upstart/gearman-job-server.conf 2012-12-19 15:28:26 +0000
21@@ -0,0 +1,26 @@
22+description "Upstart configuration for Gearman Job Server"
23+author "Goran Miskovic <goran.v.miskovic@gmail.com>"
24+
25+# Start on startup
26+# Upstart itself emits a single event called startup
27+start on startup
28+stop on runlevel [016]
29+
30+respawn
31+
32+pre-start script
33+ logger -is -t "$UPSTART_JOB" "INFO: Starting Gearman Job Server!"
34+end script
35+
36+setuid gearman
37+setgid gearman
38+
39+exec /usr/sbin/gearmand
40+
41+post-start script
42+ logger -is -t "$UPSTART_JOB" "INFO: Gearman Job Server started!"
43+end script
44+
45+post-stop script
46+ logger -is -t "$UPSTART_JOB" "INFO: Gearman Job Server stopped!"
47+end script
48\ No newline at end of file
49
50=== added file 'scripts/upstart/gearmand-init'
51--- scripts/upstart/gearmand-init 1970-01-01 00:00:00 +0000
52+++ scripts/upstart/gearmand-init 2012-12-19 15:28:26 +0000
53@@ -0,0 +1,2 @@
54+#!/bin/sh
55+ln -s /lib/init/upstart-job /etc/init.d/gearman-job-server
56\ No newline at end of file
57
58=== added file 'scripts/upstart/german-job-server.override'
59--- scripts/upstart/german-job-server.override 1970-01-01 00:00:00 +0000
60+++ scripts/upstart/german-job-server.override 2012-12-19 15:28:26 +0000
61@@ -0,0 +1,26 @@
62+description "Overriding gearman-job-server.conf"
63+author "Goran Miskovic <goran.v.miskovic@gmail.com>"
64+# Useful info could be found in /var/log/upstart/gearman-job-server.log
65+
66+# Comment line bellow to enable starting job server on startup
67+manual
68+
69+# For all versions of Upstart prior to v1.4, the default value for console was console none.
70+# console log
71+
72+# Uncomment to change the default respawn limit
73+# respawn the job up to 10 times within a 5 second period.
74+# If the job exceeds these values, it will be stopped and marked as failed.
75+# respawn limit 10 5
76+
77+# Uncomment to start when both mysql started and network is available
78+# start on (started mysql and net-device-up IFACE!=lo)
79+
80+# If compiled from the source using default options gearmand will not be in /usr/sbin
81+# exec /usr/local/sbin/gearmand
82+
83+# Uncomment to use configuration file that is not in the default location
84+# exec /usr/local/sbin/gearmand --config-file=/path/tp/yours/gearmand.conf
85+
86+# Various options could be defined in the same way
87+# exec /usr/local/sbin/gearmand --verbose=DEBUG
88\ No newline at end of file

Subscribers

People subscribed via source and target branches

to all changes: