From 7506471a821245ab681e04a6e9bf1ee79e466686 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 16 Sep 2016 16:28:09 -0400 Subject: [PATCH] Add missing service def for globalpromstats worker --- conf/init/service/globalpromstats/log/run | 7 +++++++ conf/init/service/globalpromstats/run | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100755 conf/init/service/globalpromstats/log/run create mode 100755 conf/init/service/globalpromstats/run diff --git a/conf/init/service/globalpromstats/log/run b/conf/init/service/globalpromstats/log/run new file mode 100755 index 000000000..2f6152e32 --- /dev/null +++ b/conf/init/service/globalpromstats/log/run @@ -0,0 +1,7 @@ +#!/bin/sh + +# Ensure dependencies start before the logger +sv check syslog-ng > /dev/null || exit 1 + +# Start the logger +exec logger -i -t globalpromstats diff --git a/conf/init/service/globalpromstats/run b/conf/init/service/globalpromstats/run new file mode 100755 index 000000000..fab1258fc --- /dev/null +++ b/conf/init/service/globalpromstats/run @@ -0,0 +1,8 @@ +#! /bin/bash + +echo 'Starting global prometheus stats worker' + +cd / +venv/bin/python -m workers.globalpromstats + +echo 'Global prometheus stats exited'