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
=== added directory 'scripts/upstart'
=== added file 'scripts/upstart/gearman-job-server-monitor'
--- scripts/upstart/gearman-job-server-monitor 1970-01-01 00:00:00 +0000
+++ scripts/upstart/gearman-job-server-monitor 2012-12-19 15:28:26 +0000
@@ -0,0 +1,10 @@
1description "Notify root about gearman job server respawn limit reached"
2author "Goran Miskovic <goran.v.miskovic@gmail.com>"
3
4task
5
6start on stopped gearman-job-server PROCESS=respawn
7
8script
9 echo "Gearman Job Server reached respawn limit" | mail -s "Gearman Job Server Crashed" root
10end script
0\ No newline at end of file11\ No newline at end of file
112
=== added file 'scripts/upstart/gearman-job-server.conf'
--- scripts/upstart/gearman-job-server.conf 1970-01-01 00:00:00 +0000
+++ scripts/upstart/gearman-job-server.conf 2012-12-19 15:28:26 +0000
@@ -0,0 +1,26 @@
1description "Upstart configuration for Gearman Job Server"
2author "Goran Miskovic <goran.v.miskovic@gmail.com>"
3
4# Start on startup
5# Upstart itself emits a single event called startup
6start on startup
7stop on runlevel [016]
8
9respawn
10
11pre-start script
12 logger -is -t "$UPSTART_JOB" "INFO: Starting Gearman Job Server!"
13end script
14
15setuid gearman
16setgid gearman
17
18exec /usr/sbin/gearmand
19
20post-start script
21 logger -is -t "$UPSTART_JOB" "INFO: Gearman Job Server started!"
22end script
23
24post-stop script
25 logger -is -t "$UPSTART_JOB" "INFO: Gearman Job Server stopped!"
26end script
0\ No newline at end of file27\ No newline at end of file
128
=== added file 'scripts/upstart/gearmand-init'
--- scripts/upstart/gearmand-init 1970-01-01 00:00:00 +0000
+++ scripts/upstart/gearmand-init 2012-12-19 15:28:26 +0000
@@ -0,0 +1,2 @@
1#!/bin/sh
2ln -s /lib/init/upstart-job /etc/init.d/gearman-job-server
0\ No newline at end of file3\ No newline at end of file
14
=== added file 'scripts/upstart/german-job-server.override'
--- scripts/upstart/german-job-server.override 1970-01-01 00:00:00 +0000
+++ scripts/upstart/german-job-server.override 2012-12-19 15:28:26 +0000
@@ -0,0 +1,26 @@
1description "Overriding gearman-job-server.conf"
2author "Goran Miskovic <goran.v.miskovic@gmail.com>"
3# Useful info could be found in /var/log/upstart/gearman-job-server.log
4
5# Comment line bellow to enable starting job server on startup
6manual
7
8# For all versions of Upstart prior to v1.4, the default value for console was console none.
9# console log
10
11# Uncomment to change the default respawn limit
12# respawn the job up to 10 times within a 5 second period.
13# If the job exceeds these values, it will be stopped and marked as failed.
14# respawn limit 10 5
15
16# Uncomment to start when both mysql started and network is available
17# start on (started mysql and net-device-up IFACE!=lo)
18
19# If compiled from the source using default options gearmand will not be in /usr/sbin
20# exec /usr/local/sbin/gearmand
21
22# Uncomment to use configuration file that is not in the default location
23# exec /usr/local/sbin/gearmand --config-file=/path/tp/yours/gearmand.conf
24
25# Various options could be defined in the same way
26# exec /usr/local/sbin/gearmand --verbose=DEBUG
0\ No newline at end of file27\ No newline at end of file

Subscribers

People subscribed via source and target branches

to all changes: