Jcrespo has uploaded a new change for review.
https://gerrit.wikimedia.org/r/274415
Change subject: Fixes for pt-heartbeat daemon init script (fails automatic runs)
......................................................................
Fixes for pt-heartbeat daemon init script (fails automatic runs)
Bug: T114752
Change-Id: Ibdc8ea49ae1cfdd45c719c497b534b08cc56373c
---
M files/pt-heartbeat.init
1 file changed, 5 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet/mariadb
refs/changes/15/274415/1
diff --git a/files/pt-heartbeat.init b/files/pt-heartbeat.init
index d43d4d0..c8ef0b6 100755
--- a/files/pt-heartbeat.init
+++ b/files/pt-heartbeat.init
@@ -17,14 +17,15 @@
do_start() {
start-stop-daemon --start --quiet --pidfile /var/run/pt-heartbeat.pid \
- --name pt-heartbeat --startas /usr/local/bin/pt-heartbeat-wikimedia \
- -- -D heartbeat --shard=$1 --update --replace --interval=0.5 --daemon \
- --pid /var/run/pt-heartbeat.pid -S /tmp/mysql.sock || return 2
+ --name pt-heartbeat --user root --pidfile /var/run/pt-heartbeat.pid \
+ --startas /usr/local/bin/pt-heartbeat-wikimedia -- -D heartbeat \
+ --shard=m5 --update --replace --interval=0.5 -S /tmp/mysql.sock \
+ --daemonize || return 2
}
do_stop() {
start-stop-daemon --stop --quiet --retry 5 \
- --pidfile /var/run/pt-heartbeat.pid \
+ --pidfile /var/run/pt-heartbeat.pid --user root \
--startas /usr/local/bin/pt-heartbeat-wikimedia || return 1
}
--
To view, visit https://gerrit.wikimedia.org/r/274415
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibdc8ea49ae1cfdd45c719c497b534b08cc56373c
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet/mariadb
Gerrit-Branch: master
Gerrit-Owner: Jcrespo <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits